Skip to content
Snippets Groups Projects
Commit 04ebf278 authored by Daniel Firth's avatar Daniel Firth
Browse files

Merge branch 'cachix' into 'master'

fix cachix command

See merge request package-sets/horizon-platform!4
parents 83ed1e01 86561bda
Branches
No related merge requests found
...@@ -10,7 +10,11 @@ let H = ...@@ -10,7 +10,11 @@ let H =
let toStep let toStep
: Text → Text : Text → Text
= λ(x : 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 = let input =
Prelude.Map.keys Prelude.Map.keys
...@@ -24,11 +28,13 @@ let input = ...@@ -24,11 +28,13 @@ let input =
./horizon.dhall ./horizon.dhall
) )
let packages = Prelude.List.map Text Text toStep (input : List Text) let packages = Prelude.List.map Text Text toEchoStep (input : List Text)
in Prelude.List.fold in "("
Text ++ Prelude.List.fold
packages Text
Text packages
(λ(x : Text) → λ(y : Text) → x ++ "\n" ++ y) Text
"" (λ(x : Text) → λ(y : Text) → x ++ ";" ++ y)
""
++ ") | parallel -j 16"
...@@ -23,4 +23,5 @@ cachix: ...@@ -23,4 +23,5 @@ cachix:
only: only:
refs: refs:
- master - 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'
...@@ -2,6 +2,11 @@ ...@@ -2,6 +2,11 @@
description = "Horizon Haskell Platform"; description = "Horizon Haskell Platform";
nixConfig = {
extra-substituters = "https://horizon.cachix.org";
extra-trusted-public-keys = "horizon.cachix.org-1:MeEEDRhRZTgv/FFGCv3479/dmJDfJ82G6kfUDxMSAw0=";
};
inputs = { inputs = {
get-flake.url = "github:ursi/get-flake"; get-flake.url = "github:ursi/get-flake";
flake-parts.url = "github:hercules-ci/flake-parts"; flake-parts.url = "github:hercules-ci/flake-parts";
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment