nix-shell: set the NIX_PATH

Use the same version of nixpkgs as the shell itself
This commit is contained in:
zimbatm 2022-06-27 16:54:29 +02:00
parent 16fb0b4147
commit cb688a90e3
No known key found for this signature in database
GPG key ID: 71BAF6D40C1D63D7

View file

@ -13,5 +13,7 @@ mkShell {
shellHook = '' shellHook = ''
# try to work aroud build issues # try to work aroud build issues
unset TMPDIR unset TMPDIR
export NIX_PATH=nixpkgs=${toString nixpkgs}
''; '';
} }