From fb33297fb0abf7499b17e998b4c2425bce77473d Mon Sep 17 00:00:00 2001 From: Fabian Kirchner Date: Fri, 13 Oct 2023 19:29:50 +0200 Subject: make external programs accessible --- default.nix | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'default.nix') diff --git a/default.nix b/default.nix index de120a5..ae21808 100644 --- a/default.nix +++ b/default.nix @@ -9,6 +9,7 @@ let overrides = self: super: { anissue = (super.callCabal2nix "anissue" ./. { }).overrideAttrs (oldAttrs: { nativeBuildInputs = [ pkgs.installShellFiles ]; + buildInputs = oldAttrs.buildInputs or [] ++ [ pkgs.makeWrapper ]; postInstall = '' exe=${oldAttrs.pname} @@ -16,6 +17,12 @@ let --bash <($out/bin/$exe --bash-completion-script $exe) \ --fish <($out/bin/$exe --fish-completion-script $exe) \ --zsh <($out/bin/$exe --zsh-completion-script $exe) + + wrapProgram $out/bin/$exe --prefix PATH : ${pkgs.lib.makeBinPath [ + pkgs.git + pkgs.mdcat + pkgs.tree-grepper + ]} ''; }); }; -- cgit v1.2.3