From 8d62b019f19ca07f416f2aed368c6d4a94ec5a6f Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Fri, 23 Sep 2016 15:37:53 +0200 Subject: needs makeWrapper --- users/gkleen@hel.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/users/gkleen@hel.nix b/users/gkleen@hel.nix index 14ffb73e..fa4989e2 100644 --- a/users/gkleen@hel.nix +++ b/users/gkleen@hel.nix @@ -10,9 +10,11 @@ ''; }; gnupg = pkgs.lib.overrideDerivation pkgs.gnupg (oldAttrs: { + buildInputs = [ pkgs.makeWrapper ]; postBuild = '' wrapProgram $out/bin/gpg \ - --run "while ! systemctl --user show-environment | grep -qE '^DISPLAY='; do sleep 1; done" + --run "while ! systemctl --user show-environment | grep -qE '^DISPLAY='; do sleep 1; done" \ + --run "systemctl --user import-environment DISPLAY" ''; postInstall = '' ln -s $out/bin/gpg2 $out/bin/gpg -- cgit v1.2.3