diff options
author | Rok Garbas <rok@garbas.si> | 2016-08-08 22:14:01 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-08-08 22:14:01 +0200 |
commit | f17ff218fffed6da951161e17614cdef02efdfbe (patch) | |
tree | acf36f2266056f207e497cf2f7486bc2013d2512 | |
parent | 75896a618c6afcdc579601f4a292e6d120be7063 (diff) |
nodejs: ensure that all scripts in nodejs have proper shebangs (#17594)
-rw-r--r-- | pkgs/development/web/nodejs/nodejs.nix | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pkgs/development/web/nodejs/nodejs.nix b/pkgs/development/web/nodejs/nodejs.nix index f0f4d71e39122..c10fe99f74a90 100644 --- a/pkgs/development/web/nodejs/nodejs.nix +++ b/pkgs/development/web/nodejs/nodejs.nix @@ -40,6 +40,10 @@ in stdenv.mkDerivation { sed -i 's/raise.*No Xcode or CLT version detected.*/version = "7.0.0"/' tools/gyp/pylib/gyp/xcode_emulation.py ''; + postInstall = '' + PATH=$out/bin:$PATH patchShebangs $out + ''; + patches = stdenv.lib.optionals stdenv.isDarwin [ ./no-xcode.patch ]; buildInputs = extraBuildInputs |