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
04ebf278
Commit
04ebf278
authored
2 years ago
by
Daniel Firth
Browse files
Options
Downloads
Plain Diff
Merge branch 'cachix' into 'master'
fix cachix command See merge request
package-sets/horizon-platform!4
parents
83ed1e01
86561bda
Branches
Branches containing commit
1 merge request
!4
fix cachix command
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.cachix.dhall
+14
-8
14 additions, 8 deletions
.cachix.dhall
.gitlab-ci.yml
+2
-1
2 additions, 1 deletion
.gitlab-ci.yml
flake.nix
+5
-0
5 additions, 0 deletions
flake.nix
with
21 additions
and
9 deletions
.cachix.dhall
+
14
−
8
View file @
04ebf278
...
...
@@ -10,7 +10,11 @@ let H =
let toStep
: Text → Text
= λ(x : Text) →
"nix build --json .#${x} | jq -r '.[].outputs | to_entries[].value' | cachix push horizon"
"nix build --accept-flake-config --json .#${x} | jq -r '.[].outputs | to_entries[].value' | cachix push horizon"
let toEchoStep
: Text → Text
= λ(x : Text) → "echo \"${toStep x}\""
let input =
Prelude.Map.keys
...
...
@@ -24,11 +28,13 @@ let input =
./horizon.dhall
)
let packages = Prelude.List.map Text Text toStep (input : List Text)
let packages = Prelude.List.map Text Text to
Echo
Step (input : List Text)
in Prelude.List.fold
Text
packages
Text
(λ(x : Text) → λ(y : Text) → x ++ "\n" ++ y)
""
in "("
++ Prelude.List.fold
Text
packages
Text
(λ(x : Text) → λ(y : Text) → x ++ ";" ++ y)
""
++ ") | parallel -j 16"
This diff is collapsed.
Click to expand it.
.gitlab-ci.yml
+
2
−
1
View file @
04ebf278
...
...
@@ -23,4 +23,5 @@ cachix:
only
:
refs
:
-
master
script
:
dhall --file .cachix.dhall | dhall text | bash
-
cachix
script
:
nix-shell -p jq cachix parallel --command 'dhall --file .cachix.dhall | dhall text | bash'
This diff is collapsed.
Click to expand it.
flake.nix
+
5
−
0
View file @
04ebf278
...
...
@@ -2,6 +2,11 @@
description
=
"Horizon Haskell Platform"
;
nixConfig
=
{
extra-substituters
=
"https://horizon.cachix.org"
;
extra-trusted-public-keys
=
"horizon.cachix.org-1:MeEEDRhRZTgv/FFGCv3479/dmJDfJ82G6kfUDxMSAw0="
;
};
inputs
=
{
get-flake
.
url
=
"github:ursi/get-flake"
;
flake-parts
.
url
=
"github:hercules-ci/flake-parts"
;
...
...
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