nodePackages.patchLatest: Handle tarballs whose root directories are already named 'package'
Signed-off-by: Shea Levy <shea@shealevy.com>
This commit is contained in:
parent
91ff5e33cc
commit
48a4e91989
@ -12,7 +12,7 @@ let self = {
|
||||
mkdir unpack
|
||||
cd unpack
|
||||
tar xf ${src}
|
||||
mv */ package
|
||||
mv */ package 2>/dev/null || true
|
||||
sed -i -e "s/: \"latest\"/: \"*\"/" package/package.json
|
||||
tar cf $out *
|
||||
'';
|
||||
|
Loading…
Reference in New Issue
Block a user