about summary refs log tree commit diff
path: root/pkgs/sternenseemann
diff options
context:
space:
mode:
authoraszlig <aszlig@nix.build>2021-06-16 02:16:32 +0200
committeraszlig <aszlig@nix.build>2021-06-16 02:16:32 +0200
commit8ee2e8ee99e566f007051b9d1b51f6a14eb7b5f0 (patch)
tree2990797b29496329adff2b0b9f6ec1b260f806b6 /pkgs/sternenseemann
parentf149be49735d186ea08404cd4d7648f23bd5f98f (diff)
sternenseemann/pass: Revert changes for pass 1.7.4
This reverts commit 88f3e07f175c813cd33469e426f76d7815dd1389.

Since https://github.com/NixOS/nixpkgs/pull/126616 still isn't merged
and also not in the current NixOS unstable channel, we run into the
following evaluation error:

  assertion '(dmenuSupport -> (((dmenu != null) && (xdotool != null)) && x11Support))'
  failed at: (17:1) in file: .../pkgs/tools/security/pass/default.nix

I decided to re-revert this change, because the commit in question
(which undid the revert) did not specify a good reason for doing so and
right now the eval error breaks all machine channels on Hydra.

Signed-off-by: aszlig <aszlig@nix.build>
Cc: @sternenseemann
Diffstat (limited to 'pkgs/sternenseemann')
-rw-r--r--pkgs/sternenseemann/default.nix11
1 files changed, 8 insertions, 3 deletions
diff --git a/pkgs/sternenseemann/default.nix b/pkgs/sternenseemann/default.nix
index 87410e91..a54e767d 100644
--- a/pkgs/sternenseemann/default.nix
+++ b/pkgs/sternenseemann/default.nix
@@ -114,11 +114,16 @@ lib.fix (self: {
   pass = (pkgs.pass.override {
     waylandSupport = true;
     x11Support = false;
-    dmenuSupport = true;
   }).overrideAttrs (old: {
-    postPatch = old.postPatch + ''
+    patches = old.patches ++ [ ./patches/passmenu-wayland.patch ];
+    postPatch = ''
+      ${old.postPatch}
       substituteInPlace "contrib/dmenu/passmenu" \
-        --replace "dmenu-wl" "${bins.bemenu}"
+        --replace "bemenu" "'${bins.bemenu} -l10'"
+    '';
+    postInstall = ''
+      ${old.postInstall}
+      cp "contrib/dmenu/passmenu" "$out/bin/"
     '';
   });