Merge pull request #133657 from kevincox/node-packages-generate

node-packages: Fix generate when running from a different directory.

authored by

Jörg Thalheim and committed by
GitHub
f5a9dba0 17265bc3

+1 -3
+1 -3
pkgs/development/node-packages/generate.sh
··· 1 #!/usr/bin/env bash 2 set -eu -o pipefail 3 - 4 - DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" 5 node2nix=$(nix-build ../../.. -A nodePackages.node2nix) 6 - cd "$DIR" 7 rm -f ./node-env.nix 8 ${node2nix}/bin/node2nix -i node-packages.json -o node-packages.nix -c composition.nix 9 # using --no-out-link in nix-build argument would cause the
··· 1 #!/usr/bin/env bash 2 set -eu -o pipefail 3 + cd "$( dirname "${BASH_SOURCE[0]}" )" 4 node2nix=$(nix-build ../../.. -A nodePackages.node2nix) 5 rm -f ./node-env.nix 6 ${node2nix}/bin/node2nix -i node-packages.json -o node-packages.nix -c composition.nix 7 # using --no-out-link in nix-build argument would cause the