3
0
Fork 0
forked from mirrors/nixpkgs

In nodePackages.patchSource, make the source tree writable

Signed-off-by: Shea Levy <shea@shealevy.com>
This commit is contained in:
Shea Levy 2013-11-14 14:11:53 -05:00
parent 0b0bded848
commit 60428f1d49

View file

@ -17,9 +17,10 @@ rec {
mkdir unpack
cd unpack
unpackFile ${src}
chmod -R +w */
mv */ package 2>/dev/null || true
sed -i -e "s/:\s*\"latest\"/: *\"*\"/" -e "s/:\s*\"git\(\+\(ssh\|http\|https\)\)\?\:\/\/[^\"]*\"/: \"*\"/" package/package.json
mv * $out
mv */ $out
'';
# Backwards compat