File tree Expand file tree Collapse file tree 2 files changed +21
-0
lines changed Expand file tree Collapse file tree 2 files changed +21
-0
lines changed Original file line number Diff line number Diff line change
1
+ allow-import-from-derivation = true
2
+ allowed-users = *
3
+ builders-use-substitutes = true
4
+ experimental-features = nix-command flakes
5
+ keep-derivations = true
6
+ keep-outputs = true
7
+ max-jobs = auto
8
+ substituters = https://cache.iog.io https://cache.nixos.org https://cache.ngi0.nixos.org/ https://cache.nixos.org/
9
+ system-features = nixos-test benchmark big-parallel kvm
10
+ trusted-public-keys = cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= cache.ngi0.nixos.org-1:KqH5CBLNSyX184S9BKZJo1LxrxJ9ltnY2uAs5c/f1MA= hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ= iohk.cachix.org-1:DpRUyj7h7V830dp/i6Nti+NEO2/nhblbov/8MW7Rqoo=
Original file line number Diff line number Diff line change @@ -20,6 +20,17 @@ printf "*** Cleaning package build directories..." >& 2
20
20
rm -rvf * /cabal.project.local * /.ghc.environment* * /dist * /dist-newstyle * /.stack-work
21
21
echo >& 2
22
22
23
+ # This was needed is first place to make hix template / flake devShell examples
24
+ # not require interactive user confirmation. Because the IOG nix cache settings
25
+ # are defined in the `nixConfig` flake attribute.
26
+ if [ ! -z ${CI+x} ]; then
27
+ printf " *** Set custom nix.conf for CI ..." >& 2
28
+ export XDG_CONFIG_HOME=$HOME /.config
29
+ mkdir -p $XDG_CONFIG_HOME /nix
30
+ cp ./nix.conf $XDG_CONFIG_HOME /nix
31
+ echo >& 2
32
+ fi
33
+
23
34
printf " *** Running the nix-build tests...\n" >& 2
24
35
nix build $NIX_BUILD_ARGS \
25
36
-I . -I .. \
You can’t perform that action at this time.
0 commit comments