In nodePackages.patchSource, make the source tree writable
Signed-off-by: Shea Levy <shea@shealevy.com>
This commit is contained in:
parent
0b0bded848
commit
60428f1d49
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user