It seems that this expression is used somewhere in internals of nixpkgs itself, and some stuff not working otherwise. I didn't debug it thorously, but it helped me to get "nix-shell" for "haskell/large-anon" working.
10 lines
411 B
Bash
10 lines
411 B
Bash
# This way "import <snapshot>" means to use vendored nixpkgs snapshot anywhere in
|
|
# this repository, no matter how deep inside subdirectory tree it is. Alternative of
|
|
# using "import ../../." (with correct amount of "..") makes moving things around more
|
|
# complicated.
|
|
#
|
|
# Not something one need to do every day, but still. Ergonomics matters.
|
|
export NIX_PATH=snapshot=$PWD:nixpkgs=$PWD/nixpkgs
|
|
|
|
# vim:ft=bash:
|