Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
haskell
flake-to-gitlab-ci
Commits
0a36f594
Commit
0a36f594
authored
2 years ago
by
Daniel Firth
Browse files
Options
Download
Email Patches
Plain Diff
Add `-L` to template build and check commands
parent
2ba32e71
cleanup
No related merge requests found
Pipeline
#2277
passed with stages
in 6 seconds
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
10 deletions
+14
-10
ChangeLog.md
ChangeLog.md
+4
-0
flake-to-gitlab-ci.cabal
flake-to-gitlab-ci.cabal
+1
-1
package.yaml
package.yaml
+1
-1
src/FlakeToGitlabCI.hs
src/FlakeToGitlabCI.hs
+8
-8
No files found.
ChangeLog.md
View file @
0a36f594
# Changelog for flake-to-gitlab-ci
## v0.2.2.0
*
Add
`-L`
to template build and check commands.
## v0.2.1.0
*
Add
`templates`
to CI jobs with build and check for
...
...
This diff is collapsed.
Click to expand it.
flake-to-gitlab-ci.cabal
View file @
0a36f594
...
...
@@ -5,7 +5,7 @@ cabal-version: 1.12
-- see: https://github.com/sol/hpack
name: flake-to-gitlab-ci
version: 0.2.
1
.0
version: 0.2.
2
.0
synopsis: Converts a nix flake to gitlab CI jobs.
description: Converts a nix flake to gitlab CI jobs.
category: Nix, Web, Git
...
...
This diff is collapsed.
Click to expand it.
package.yaml
View file @
0a36f594
name
:
flake-to-gitlab-ci
version
:
0.2.
1
.0
version
:
0.2.
2
.0
git
:
https://gitlab.homotopic.tech/haskell/flake-to-gitlab-ci
license
:
MIT
author
:
"
Daniel
Firth"
...
...
This diff is collapsed.
Click to expand it.
src/FlakeToGitlabCI.hs
View file @
0a36f594
...
...
@@ -104,14 +104,14 @@ mkNixosConfiguration x = ( sformat ("nixosConfigurations." % stext) x
mkTemplate
::
Text
->
Text
->
(
Text
,
Step
)
mkTemplate
n
x
=
(
sformat
(
"templates."
%
stext
)
x
,
Step
[
"mkdir foo"
,
"cd foo"
,
sformat
(
"nix flake init -t ..#"
%
stext
)
x
,
"git init ."
,
"git add *"
,
sformat
(
"nix build --override-input "
%
stext
%
" ../"
)
n
,
sformat
(
"nix flake check --override-input "
%
stext
%
" ../"
)
n
]
,
Step
[
"mkdir foo"
,
"cd foo"
,
sformat
(
"nix flake init -t ..#"
%
stext
)
x
,
"git init ."
,
"git add *"
,
sformat
(
"nix build
-L
--override-input "
%
stext
%
" ../"
)
n
,
sformat
(
"nix flake check
-L
--override-input "
%
stext
%
" ../"
)
n
]
)
main
::
IO
()
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help