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 b8f1f85bc2
commit 60309fad02

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 "$@"