mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 14:54:29 +01:00
bower2nix: fix execution under nix-shell --pure
bower2nix needs nix to compute store hashes. Fixes rvl/bower2nix#16
This commit is contained in:
parent
9b0d50e3d0
commit
9ec640ec70
3 changed files with 5 additions and 5 deletions
|
@ -1,4 +1,4 @@
|
|||
{pkgs, system, nodejs}:
|
||||
{pkgs, system, nodejs, stdenv}:
|
||||
|
||||
let
|
||||
nodePackages = import ./composition-v4.nix {
|
||||
|
@ -43,7 +43,7 @@ nodePackages // {
|
|||
buildInputs = oldAttrs.buildInputs ++ [ pkgs.makeWrapper ];
|
||||
postInstall = ''
|
||||
for prog in bower2nix fetch-bower; do
|
||||
wrapProgram "$out/bin/$prog" --prefix PATH : "${pkgs.git}/bin"
|
||||
wrapProgram "$out/bin/$prog" --prefix PATH : ${stdenv.lib.makeBinPath [ pkgs.git pkgs.nix ]}
|
||||
done
|
||||
'';
|
||||
});
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{pkgs, system, nodejs}:
|
||||
{pkgs, system, nodejs, stdenv}:
|
||||
|
||||
let
|
||||
nodePackages = import ./composition-v6.nix {
|
||||
|
@ -41,7 +41,7 @@ nodePackages // {
|
|||
buildInputs = oldAttrs.buildInputs ++ [ pkgs.makeWrapper ];
|
||||
postInstall = ''
|
||||
for prog in bower2nix fetch-bower; do
|
||||
wrapProgram "$out/bin/$prog" --prefix PATH : "${pkgs.git}/bin"
|
||||
wrapProgram "$out/bin/$prog" --prefix PATH : ${stdenv.lib.makeBinPath [ pkgs.git pkgs.nix ]}
|
||||
done
|
||||
'';
|
||||
});
|
||||
|
|
|
@ -66,7 +66,7 @@ in rec {
|
|||
bower2nix.buildInputs = [ pkgs.makeWrapper ];
|
||||
bower2nix.postInstall = ''
|
||||
for prog in bower2nix fetch-bower; do
|
||||
wrapProgram "$out/bin/$prog" --prefix PATH : "${pkgs.git}/bin"
|
||||
wrapProgram "$out/bin/$prog" --prefix PATH : ${stdenv.lib.makeBinPath [ pkgs.git pkgs.nix ]}
|
||||
done
|
||||
'';
|
||||
} // args.overrides or {};
|
||||
|
|
Loading…
Reference in a new issue