File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
pkgs/development/tools/pypi2nix Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change 7171 + ( if pathExists suffixFile then fileContents suffixFile else "pre-git" ) ;
7272
7373 # Whether we're being called by nix-shell.
74- inNixShell = builtins . getEnv "IN_NIX_SHELL" == "1 ";
74+ inNixShell = builtins . getEnv "IN_NIX_SHELL" != " ";
7575
7676 # Return minimum/maximum of two numbers.
7777 min = x : y : if x < y then x else y ;
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ in stdenv.mkDerivation rec {
3636 # mv effect-*/effect $out/pkgs/effect
3737 mv requests-*/requests $out/pkgs/
3838
39- if [ "$IN_NIX_SHELL" != "1 " ]; then
39+ if [ -z "$IN_NIX_SHELL" ]; then
4040 if [ -e git-export ]; then
4141 mv git-export/src/pypi2nix $out/pkgs/pypi2nix
4242 else
You can’t perform that action at this time.
0 commit comments