node-packages: ability to fix sources that use the impure "latest" dependency
This commit is contained in:
parent
df82c94263
commit
278312a38c
@ -5,6 +5,14 @@ let self = {
|
|||||||
inherit stdenv nodejs;
|
inherit stdenv nodejs;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
patchLatest = srcAttrs:
|
||||||
|
let src = fetchurl srcAttrs; in
|
||||||
|
pkgs.runCommand src.name {} ''
|
||||||
|
tar xf ${src}
|
||||||
|
sed -i -e "s/: \"latest\"/: \"*\"/" package/package.json
|
||||||
|
tar cf $out package
|
||||||
|
'';
|
||||||
|
|
||||||
"abbrev" = self."abbrev-1";
|
"abbrev" = self."abbrev-1";
|
||||||
|
|
||||||
"abbrev-1" = self.buildNodePackage rec {
|
"abbrev-1" = self.buildNodePackage rec {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user