mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-22 20:14:37 +00:00
pass.withExtensions: add meta.mainProgram
``` nix-repl> lib.getExe (pass.withExtensions(_: [])) "/nix/store/rvc4ambjr8jsvm5n757icfl3j7gv1jxh-pass-env/bin/pass" ```
This commit is contained in:
parent
61c0ecea5b
commit
d787798f1c
@ -29,8 +29,7 @@ let
|
||||
selected = [ pass ] ++ extensions passExtensions
|
||||
++ lib.optional tombPluginSupport passExtensions.tomb;
|
||||
in buildEnv {
|
||||
# lib.getExe looks for name, so we keep it the same as mainProgram
|
||||
name = "pass";
|
||||
name = "pass-env";
|
||||
paths = selected;
|
||||
nativeBuildInputs = [ makeWrapper ];
|
||||
buildInputs = lib.concatMap (x: x.buildInputs) selected;
|
||||
@ -51,6 +50,7 @@ let
|
||||
wrapProgram $out/bin/pass \
|
||||
--set SYSTEM_EXTENSION_DIR "$out/lib/password-store/extensions"
|
||||
'';
|
||||
meta.mainProgram = "pass";
|
||||
};
|
||||
in
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user