add cachix

This commit is contained in:
zimbatm 2020-02-23 14:58:30 +01:00
parent 777ae73ea1
commit ab443863a5
No known key found for this signature in database
GPG key ID: 71BAF6D40C1D63D7
2 changed files with 8 additions and 1 deletions

View file

@ -0,0 +1,6 @@
{ docker-nixpkgs
, cachix
}:
docker-nixpkgs.nix.override {
extraContents = [ cachix ];
}

View file

@ -9,6 +9,7 @@
, iana-etc
, nix
, xz
, extraContents ? []
}:
let
image = dockerTools.buildImageWithNixDb {
@ -30,7 +31,7 @@ let
# for haskell binaries
iana-etc
];
] ++ extraContents;
extraCommands = ''
# for /usr/bin/env