nix: introduce fake nixpkgs (#9)
Since <nixpkgs> wasn't working, might as well make the error more explicit. That way, users are quickly aware if they forgot to pin their nixpkgs.
This commit is contained in:
parent
0f24a9c94a
commit
0b362172fb
2 changed files with 8 additions and 1 deletions
|
@ -53,7 +53,7 @@ let
|
|||
"ENV=/etc/profile.d/nix.sh"
|
||||
"BASH_ENV=/etc/profile.d/nix.sh"
|
||||
"NIX_BUILD_SHELL=/bin/bash"
|
||||
"NIX_PATH=nixpkgs=${toString <nixpkgs>}"
|
||||
"NIX_PATH=nixpkgs=${./fake_nixpkgs}"
|
||||
"PAGER=cat"
|
||||
"PATH=/usr/bin:/bin"
|
||||
"SSL_CERT_FILE=${cacert}/etc/ssl/certs/ca-bundle.crt"
|
||||
|
|
7
images/nix/fake_nixpkgs/default.nix
Normal file
7
images/nix/fake_nixpkgs/default.nix
Normal file
|
@ -0,0 +1,7 @@
|
|||
_:
|
||||
throw ''
|
||||
This container doesn't include nixpkgs.
|
||||
|
||||
Pin your dependencies. Or if you must, override the NIX_PATH environment
|
||||
variable with eg: "NIX_PATH=nixpkgs=channel:nixos-unstable"
|
||||
''
|
Loading…
Add table
Add a link
Reference in a new issue