nodePackages.bower2nix: Add back PATH wrapping
bower2nix and fetch-bower need git in the PATH to operate. This wrapping got lost with the nodePackages updates. (Fixes #18454)
This commit is contained in:
parent
56904d7c42
commit
952c477f90
@ -38,4 +38,13 @@ nodePackages // {
|
|||||||
npm2nix = nodePackages."npm2nix-git://github.com/NixOS/npm2nix.git#5.12.0".override {
|
npm2nix = nodePackages."npm2nix-git://github.com/NixOS/npm2nix.git#5.12.0".override {
|
||||||
postInstall = "npm run-script prepublish";
|
postInstall = "npm run-script prepublish";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
bower2nix = nodePackages.bower2nix.override (oldAttrs: {
|
||||||
|
buildInputs = oldAttrs.buildInputs ++ [ pkgs.makeWrapper ];
|
||||||
|
postInstall = ''
|
||||||
|
for prog in bower2nix fetch-bower; do
|
||||||
|
wrapProgram "$out/bin/$prog" --prefix PATH : "${pkgs.git}/bin"
|
||||||
|
done
|
||||||
|
'';
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
@ -32,4 +32,13 @@ nodePackages // {
|
|||||||
|
|
||||||
dontNpmInstall = true; # We face an error with underscore not found, but the package will work fine if we ignore this.
|
dontNpmInstall = true; # We face an error with underscore not found, but the package will work fine if we ignore this.
|
||||||
});
|
});
|
||||||
|
|
||||||
|
bower2nix = nodePackages.bower2nix.override (oldAttrs: {
|
||||||
|
buildInputs = oldAttrs.buildInputs ++ [ pkgs.makeWrapper ];
|
||||||
|
postInstall = ''
|
||||||
|
for prog in bower2nix fetch-bower; do
|
||||||
|
wrapProgram "$out/bin/$prog" --prefix PATH : "${pkgs.git}/bin"
|
||||||
|
done
|
||||||
|
'';
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
@ -32,4 +32,13 @@ nodePackages // {
|
|||||||
|
|
||||||
dontNpmInstall = true; # We face an error with underscore not found, but the package will work fine if we ignore this.
|
dontNpmInstall = true; # We face an error with underscore not found, but the package will work fine if we ignore this.
|
||||||
});
|
});
|
||||||
|
|
||||||
|
bower2nix = nodePackages.bower2nix.override (oldAttrs: {
|
||||||
|
buildInputs = oldAttrs.buildInputs ++ [ pkgs.makeWrapper ];
|
||||||
|
postInstall = ''
|
||||||
|
for prog in bower2nix fetch-bower; do
|
||||||
|
wrapProgram "$out/bin/$prog" --prefix PATH : "${pkgs.git}/bin"
|
||||||
|
done
|
||||||
|
'';
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user