Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
horizon-platform
Manage
Activity
Members
Labels
Plan
Issues
2
Issue boards
Milestones
Wiki
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
package-sets
horizon-platform
Commits
5d8ab107
Commit
5d8ab107
authored
2 years ago
by
Daniel Firth
Browse files
Options
Downloads
Patches
Plain Diff
horizon.dhall: init
Use dhall definitions from horizon-spec
parent
a5cf5311
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
.gitlab-ci.dhall
+4
-21
4 additions, 21 deletions
.gitlab-ci.dhall
flake.lock
+4
-4
4 additions, 4 deletions
flake.lock
horizon.dhall
+2
-0
2 additions, 0 deletions
horizon.dhall
manifest.dhall
+755
-793
755 additions, 793 deletions
manifest.dhall
with
765 additions
and
818 deletions
.gitlab-ci.dhall
+
4
−
21
View file @
5d8ab107
...
@@ -3,29 +3,12 @@ let Prelude =
...
@@ -3,29 +3,12 @@ let Prelude =
? https://raw.githubusercontent.com/dhall-lang/dhall-lang/v20.1.0/Prelude/package.dhall
? https://raw.githubusercontent.com/dhall-lang/dhall-lang/v20.1.0/Prelude/package.dhall
sha256:26b0ef498663d269e4dc6a82b0ee289ec565d683ef4c00d0ebdd25333a5a3c98
sha256:26b0ef498663d269e4dc6a82b0ee289ec565d683ef4c00d0ebdd25333a5a3c98
let HsSrc =
let H = ./horizon.dhall
< FromHackage : { name : Text, version : Text }
| FromGit :
{ url : Text, revision : Optional Text, subdir : Optional Text }
>
let Modifiers =
{ Type = { doJailbreak : Bool, doCheck : Bool }
, default = { doJailbreak = True, doCheck = False }
}
let Attr = λ(a : Type) → { mapKey : Text, mapValue : a }
let HsPkg = {source : HsSrc, modifiers : Modifiers.Type }
let Attr
: ∀(x : Type) → Type
= λ(x : Type) → { mapKey : Text, mapValue : x }
let Step = { script : List Text }
let Step = { script : List Text }
let toStep
let toStep
: ∀(id : Text) → ∀(prefix : Text) → ∀(x : Text) → Attr Step
: ∀(id : Text) → ∀(prefix : Text) → ∀(x : Text) →
H.
Attr Step
= λ(id : Text) →
= λ(id : Text) →
λ(prefix : Text) →
λ(prefix : Text) →
λ(x : Text) →
λ(x : Text) →
...
@@ -33,12 +16,12 @@ let toStep
...
@@ -33,12 +16,12 @@ let toStep
, mapValue.script = [ "nix build -L .#${prefix}.${x}" ]
, mapValue.script = [ "nix build -L .#${prefix}.${x}" ]
}
}
let input = Prelude.Map.keys Text HsPkg ./manifest.dhall
let input = Prelude.Map.keys Text
H.
HsPkg
.Type
./manifest.dhall
let packages =
let packages =
Prelude.List.map
Prelude.List.map
(Text)
(Text)
(Attr Step)
(
H.
Attr Step)
( λ(x : Text) →
( λ(x : Text) →
toStep "Package ${x}" "packages.x86_64-linux" x
toStep "Package ${x}" "packages.x86_64-linux" x
)
)
...
...
This diff is collapsed.
Click to expand it.
flake.lock
+
4
−
4
View file @
5d8ab107
...
@@ -64,11 +64,11 @@
...
@@ -64,11 +64,11 @@
"horizon-gen-nix": {
"horizon-gen-nix": {
"flake": false,
"flake": false,
"locked": {
"locked": {
"lastModified": 16679
26671
,
"lastModified": 16679
75665
,
"narHash": "sha256-
TWD8yl8GSasvcFzn1ytS6/riemJ9zLi9xvc2Uhqi8QQ
=",
"narHash": "sha256-
XQ6ZsZKa77M2Z0GtFsDhqhrR1HRe6R58xut2KfJmlCY
=",
"ref": "refs/heads/master",
"ref": "refs/heads/master",
"rev": "
0b00a1c2c4e8f8ed169bb732ea35c4da4ea3e387
",
"rev": "
29d95902966aa28ba09bed2d6e5edbabb0a153b5
",
"revCount":
39
,
"revCount":
41
,
"type": "git",
"type": "git",
"url": "https://gitlab.homotopic.tech/horizon/horizon-gen-nix"
"url": "https://gitlab.homotopic.tech/horizon/horizon-gen-nix"
},
},
...
...
This diff is collapsed.
Click to expand it.
horizon.dhall
0 → 100644
+
2
−
0
View file @
5d8ab107
https://gitlab.homotopic.tech/horizon/horizon-spec/-/raw/0.0.0.2/dhall/package.dhall
sha256:d68590d5517ee9693c9e7fc7e5c3412255c34d2c3f795d354e81a667405a09f3
This diff is collapsed.
Click to expand it.
manifest.dhall
+
755
−
793
View file @
5d8ab107
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment