From 60428f1d49a8a0425cf457846da688d63817cf5a Mon Sep 17 00:00:00 2001 From: Shea Levy Date: Thu, 14 Nov 2013 14:11:53 -0500 Subject: [PATCH] In nodePackages.patchSource, make the source tree writable Signed-off-by: Shea Levy --- pkgs/top-level/node-packages.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/top-level/node-packages.nix b/pkgs/top-level/node-packages.nix index 1633694155e9..6261d87cc915 100644 --- a/pkgs/top-level/node-packages.nix +++ b/pkgs/top-level/node-packages.nix @@ -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