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
1 merge request!4fix cachix command
......@@ -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 toEchoStep (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"
......@@ -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'
......@@ -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";
......
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