haskellPackages.nvfetcher: move overrideCabal to configuration-nix.nix
This commit is contained in:
parent
8ba5828c24
commit
233087eb79
2 changed files with 13 additions and 7 deletions
|
@ -833,4 +833,16 @@ self: super: builtins.intersectAttrs super {
|
|||
sed -i 's|"tophat"|"./dist/build/tophat/tophat"|' app-test-bin/*.hs
|
||||
'' + (drv.postPatch or "");
|
||||
});
|
||||
|
||||
# Runtime dependencies and CLI completion
|
||||
nvfetcher = generateOptparseApplicativeCompletion "nvfetcher" (overrideCabal
|
||||
super.nvfetcher (drv: {
|
||||
buildTools = drv.buildTools or [ ] ++ [ pkgs.makeWrapper ];
|
||||
postInstall = drv.postInstall or "" + ''
|
||||
wrapProgram "$out/bin/nvfetcher" --prefix 'PATH' ':' "${
|
||||
pkgs.lib.makeBinPath [ pkgs.nvchecker pkgs.nix-prefetch-git ]
|
||||
}"
|
||||
'';
|
||||
}));
|
||||
|
||||
}
|
||||
|
|
|
@ -7202,13 +7202,7 @@ in
|
|||
|
||||
nvchecker = with python3Packages; toPythonApplication nvchecker;
|
||||
|
||||
nvfetcher = with haskell.lib; overrideCabal (justStaticExecutables haskellPackages.nvfetcher) (drv: {
|
||||
executableToolDepends = [ makeWrapper ];
|
||||
postInstall = ''
|
||||
wrapProgram $out/bin/nvfetcher \
|
||||
--prefix PATH ":" "${nvchecker}/bin:${nix-prefetch-git}/bin"
|
||||
'';
|
||||
});
|
||||
nvfetcher = haskell.lib.justStaticExecutables haskellPackages.nvfetcher;
|
||||
|
||||
miller = callPackage ../tools/text/miller { };
|
||||
|
||||
|
|
Loading…
Reference in a new issue