aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/pkgs/tools/security/pass/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/tools/security/pass/default.nix')
-rw-r--r--nixpkgs/pkgs/tools/security/pass/default.nix13
1 files changed, 10 insertions, 3 deletions
diff --git a/nixpkgs/pkgs/tools/security/pass/default.nix b/nixpkgs/pkgs/tools/security/pass/default.nix
index aeb838c0576..5d0e94bc803 100644
--- a/nixpkgs/pkgs/tools/security/pass/default.nix
+++ b/nixpkgs/pkgs/tools/security/pass/default.nix
@@ -4,6 +4,7 @@
, xclip ? null, xdotool ? null, dmenu ? null
, x11Support ? !stdenv.isDarwin
+, waylandSupport ? false, wl-clipboard ? null
# For backwards-compatibility
, tombPluginSupport ? false
@@ -15,6 +16,8 @@ assert x11Support -> xclip != null
&& xdotool != null
&& dmenu != null;
+assert waylandSupport -> wl-clipboard != null;
+
let
passExtensions = import ./extensions { inherit pkgs; };
@@ -37,8 +40,11 @@ let
sha256 = "1x53k5dn3cdmvy8m4fqdld4hji5n676ksl0ql4armkmsds26av1b";
};
- patches = [ ./set-correct-program-name-for-sleep.patch
- ] ++ stdenv.lib.optional stdenv.isDarwin ./no-darwin-getopt.patch;
+ patches = [ ./set-correct-program-name-for-sleep.patch ]
+ ++ stdenv.lib.optional stdenv.isDarwin ./no-darwin-getopt.patch
+ # TODO (@Ma27) this patch adds support for wl-clipboard and can be removed during the next
+ # version bump.
+ ++ stdenv.lib.optional waylandSupport ./clip-wayland-support.patch;
nativeBuildInputs = [ makeWrapper ];
@@ -67,7 +73,8 @@ let
qrencode
procps
] ++ optional stdenv.isDarwin openssl
- ++ ifEnable x11Support [ dmenu xclip xdotool ]);
+ ++ ifEnable x11Support [ dmenu xclip xdotool ]
+ ++ optional waylandSupport wl-clipboard);
postFixup = ''
# Link extensions env