diff options
author | Artturin <Artturin@artturin.com> | 2023-08-04 18:35:06 +0300 |
---|---|---|
committer | Artturin <Artturin@artturin.com> | 2023-08-04 20:31:17 +0300 |
commit | d787798f1c69104b91f6dd8ebdaafa4be66adbda (patch) | |
tree | 1aa302c5d4137435e6fd5e5460c8be9c26b6253c /pkgs/tools/security/pass | |
parent | 61c0ecea5b98249bc234466bc0e0ae778af72a45 (diff) |
pass.withExtensions: add meta.mainProgram
``` nix-repl> lib.getExe (pass.withExtensions(_: [])) "/nix/store/rvc4ambjr8jsvm5n757icfl3j7gv1jxh-pass-env/bin/pass" ```
Diffstat (limited to 'pkgs/tools/security/pass')
-rw-r--r-- | pkgs/tools/security/pass/default.nix | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/tools/security/pass/default.nix b/pkgs/tools/security/pass/default.nix index 1b840999e6af8..3437b19e3a30b 100644 --- a/pkgs/tools/security/pass/default.nix +++ b/pkgs/tools/security/pass/default.nix @@ -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 |