pkgs: comma: allow override which nixpkgs is used

This is useful for me to use my pinned `pkgs` instead.
This commit is contained in:
Bruno BELANYI 2021-05-27 21:37:29 +02:00
parent 395f15f181
commit da21e7a6f2

View file

@ -30,4 +30,4 @@ if [ -z "$PROGRAM" ]; then
exit 1
fi
nix shell "nixpkgs#$PROGRAM" -c "$@"
nix shell "${COMMA_PKGS_FLAKE:-nixpkgs}#$PROGRAM" -c "$@"