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