mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-19 16:45:49 +01:00
cabal2nix: include nix in the generated wrapper to ensure that nix-prefetch-url is in $PATH
Fixes https://github.com/NixOS/nixpkgs/issues/25718.
This commit is contained in:
parent
8b647e991f
commit
fc0543cd88
1 changed files with 3 additions and 1 deletions
|
@ -742,7 +742,9 @@ with pkgs;
|
|||
exe=$out/libexec/${drv.pname}-${drv.version}/${drv.pname}
|
||||
install -D $out/bin/${drv.pname} $exe
|
||||
rm -rf $out/{bin,lib,share}
|
||||
makeWrapper $exe $out/bin/${drv.pname} --prefix PATH ":" "${nix-prefetch-scripts}/bin"
|
||||
makeWrapper $exe $out/bin/${drv.pname} \
|
||||
--prefix PATH ":" "${nix}/bin" \
|
||||
--prefix PATH ":" "${nix-prefetch-scripts}/bin"
|
||||
mkdir -p $out/share/bash-completion/completions
|
||||
$exe --bash-completion-script $exe >$out/share/bash-completion/completions/${drv.pname}
|
||||
'';
|
||||
|
|
Loading…
Reference in a new issue