niv: wrap binary supplying runtime nix dependency in PATH
This commit is contained in:
parent
7fddf12bad
commit
06c30f68c6
|
@ -305,7 +305,13 @@ self: super: builtins.intersectAttrs super {
|
||||||
ghc-debug-brick = enableSeparateBinOutput super.ghc-debug-brick;
|
ghc-debug-brick = enableSeparateBinOutput super.ghc-debug-brick;
|
||||||
nixfmt = enableSeparateBinOutput super.nixfmt;
|
nixfmt = enableSeparateBinOutput super.nixfmt;
|
||||||
calligraphy = enableSeparateBinOutput super.calligraphy;
|
calligraphy = enableSeparateBinOutput super.calligraphy;
|
||||||
niv = enableSeparateBinOutput (self.generateOptparseApplicativeCompletions [ "niv" ] super.niv);
|
niv = overrideCabal (drv: {
|
||||||
|
buildTools = (drv.buildTools or []) ++ [ pkgs.buildPackages.makeWrapper ];
|
||||||
|
postInstall = ''
|
||||||
|
wrapProgram ''${!outputBin}/bin/niv --prefix PATH : ${pkgs.lib.makeBinPath [ pkgs.nix ]}
|
||||||
|
'';
|
||||||
|
})
|
||||||
|
(enableSeparateBinOutput (self.generateOptparseApplicativeCompletions [ "niv" ] super.niv));
|
||||||
ghcid = enableSeparateBinOutput super.ghcid;
|
ghcid = enableSeparateBinOutput super.ghcid;
|
||||||
ormolu = self.generateOptparseApplicativeCompletions [ "ormolu" ] (enableSeparateBinOutput super.ormolu);
|
ormolu = self.generateOptparseApplicativeCompletions [ "ormolu" ] (enableSeparateBinOutput super.ormolu);
|
||||||
hnix = self.generateOptparseApplicativeCompletions [ "hnix" ] super.hnix;
|
hnix = self.generateOptparseApplicativeCompletions [ "hnix" ] super.hnix;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user