Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Sridhar Ratnakumar
flake-to-gitlab-ci
Commits
501d8436
Commit
501d8436
authored
2 years ago
by
locallycompact
Browse files
Options
Download
Email Patches
Plain Diff
Use explicit import lists
parent
c2c05773
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
29 additions
and
38 deletions
+29
-38
app/Main.hs
app/Main.hs
+1
-1
flake-to-gitlab-ci.cabal
flake-to-gitlab-ci.cabal
+2
-14
package.yaml
package.yaml
+14
-12
src/FlakeToGitlabCI.hs
src/FlakeToGitlabCI.hs
+12
-11
No files found.
app/Main.hs
View file @
501d8436
module
Main
where
module
Main
(
main
)
where
import
qualified
FlakeToGitlabCI
(
main
)
...
...
This diff is collapsed.
Click to expand it.
flake-to-gitlab-ci.cabal
View file @
501d8436
...
...
@@ -33,7 +33,7 @@ library
ghc-options: -Weverything -Wno-all-missed-specialisations -Wno-implicit-prelude -Wno-missing-safe-haskell-mode -Wno-prepositive-qualified-module -Wno-safe -Wno-unsafe
build-depends:
aeson
, base >=4.7 && <
5
, base >=4.7 && <
4.18
, bytestring
, containers
, formatting
...
...
@@ -41,7 +41,6 @@ library
, lens-aeson
, shh
, text
, vector
, which
, yaml
default-language: Haskell2010
...
...
@@ -54,17 +53,6 @@ executable flake-to-gitlab-ci-exe
app
ghc-options: -Weverything -Wno-all-missed-specialisations -Wno-implicit-prelude -Wno-missing-safe-haskell-mode -Wno-prepositive-qualified-module -Wno-safe -Wno-unsafe -threaded -rtsopts -with-rtsopts=-N
build-depends:
aeson
, base >=4.7 && <5
, bytestring
, containers
base >=4.7 && <4.18
, flake-to-gitlab-ci
, formatting
, lens
, lens-aeson
, shh
, text
, vector
, which
, yaml
default-language: Haskell2010
This diff is collapsed.
Click to expand it.
package.yaml
View file @
501d8436
...
...
@@ -16,21 +16,23 @@ category: Nix, Web, Git
description
:
Converts a nix flake to gitlab CI jobs.
dependencies
:
-
aeson
-
base >= 4.7 && <
5
-
bytestring
-
containers
-
formatting
-
lens
-
lens-aeson
-
shh
-
text
-
vector
-
which
-
yaml
-
base >= 4.7 && <
4.18
library
:
source-dirs
:
src
dependencies
:
-
aeson
-
bytestring
-
containers
-
formatting
-
lens
-
lens-aeson
-
shh
-
text
-
which
-
yaml
ghc-options
:
-
-Weverything
...
...
This diff is collapsed.
Click to expand it.
src/FlakeToGitlabCI.hs
View file @
501d8436
...
...
@@ -9,20 +9,21 @@
{-# LANGUAGE TypeApplications #-}
module
FlakeToGitlabCI
(
main
)
where
import
Control.Exception
import
Control.Lens
hiding
((
|>
))
import
Data.Aeson
as
A
import
Data.Aeson.KeyMap
import
Data.Aeson.Lens
import
Control.Exception
()
import
Control.Lens
(
ix
,
view
)
import
Data.Aeson
(
FromJSON
,
ToJSON
,
Value
)
import
qualified
Data.Aeson
as
A
import
Data.Aeson.KeyMap
(
toMapText
)
import
Data.Aeson.Lens
(
_Object
)
import
qualified
Data.ByteString
as
BS
import
qualified
Data.ByteString.Char8
as
BSC
import
Data.
Map
as
Map
import
Data.Kind
(
Type
)
import
Data.Text
import
Data.
Kind
(
Type
)
import
qualified
Data.Map
as
Map
import
Data.Text
(
Text
)
import
qualified
Data.Yaml.Pretty
as
Y
import
GHC.Generics
(
Generic
)
import
Formatting
import
Shh
import
Formatting
(
Format
,
sformat
,
stext
,
(
%
)
)
import
GHC.Generics
(
Generic
)
import
Shh
(
Proc
,
capture
,
mkProc
,
(
|>
))
import
System.Which
(
staticWhich
)
nixBin
::
FilePath
...
...
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