summary refs log tree commit diff
path: root/pkgs/applications
diff options
context:
space:
mode:
authorSavanni D'Gerinel <savanni@luminescent-dreams.com>2021-07-17 16:26:45 -0400
committerGitHub <noreply@github.com>2021-07-17 22:26:45 +0200
commitd092bf08fe8a09868ab0a331b7ae72cbfab9b92f (patch)
tree5caa24c04060a3e39bcf000243324cab4bef0b13 /pkgs/applications
parent3628c49bae5d588f79eff9c6fc0344ceebdd4d40 (diff)
downloadnixpkgs-d092bf08fe8a09868ab0a331b7ae72cbfab9b92f.tar
nixpkgs-d092bf08fe8a09868ab0a331b7ae72cbfab9b92f.tar.gz
nixpkgs-d092bf08fe8a09868ab0a331b7ae72cbfab9b92f.tar.bz2
nixpkgs-d092bf08fe8a09868ab0a331b7ae72cbfab9b92f.tar.lz
nixpkgs-d092bf08fe8a09868ab0a331b7ae72cbfab9b92f.tar.xz
nixpkgs-d092bf08fe8a09868ab0a331b7ae72cbfab9b92f.tar.zst
nixpkgs-d092bf08fe8a09868ab0a331b7ae72cbfab9b92f.zip
1password-gui: 8.0.34 - 8.1.1 (#130270)
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
Diffstat (limited to 'pkgs/applications')
-rw-r--r--pkgs/applications/misc/1password-gui/default.nix11
1 files changed, 8 insertions, 3 deletions
diff --git a/pkgs/applications/misc/1password-gui/default.nix b/pkgs/applications/misc/1password-gui/default.nix
index b4b55fa264d..0803b495b2f 100644
--- a/pkgs/applications/misc/1password-gui/default.nix
+++ b/pkgs/applications/misc/1password-gui/default.nix
@@ -28,15 +28,16 @@
 , nss
 , pango
 , systemd
+, udev
 , xdg-utils
 }:
 stdenv.mkDerivation rec {
   pname = "1password";
-  version = "8.0.34";
+  version = "8.1.1";
 
   src = fetchurl {
     url = "https://downloads.1password.com/linux/tar/stable/x86_64/1password-${version}.x64.tar.gz";
-    sha256 = "0mp119v5vgsva7pnxpsbq4xhh4vbhwv7ga9b5b7f6slx3biy1wmh";
+    sha256 = "0y39sfhj9xrgprh01i9apzfkqzm6pdhjc8x59x5p5djjjvxbcwmy";
   };
 
   nativeBuildInputs = [ makeWrapper ];
@@ -95,8 +96,12 @@ stdenv.mkDerivation rec {
         patchelf --set-rpath ${rpath}:$out/share/1password $file
       done
 
+      # Electron is trying to open udev via dlopen()
+      # and for some reason that doesn't seem to be impacted from the rpath.
+      # Adding udev to LD_LIBRARY_PATH fixes that.
       makeWrapper $out/share/1password/1password $out/bin/1password \
-        --prefix PATH : ${xdg-utils}/bin
+        --prefix PATH : ${lib.makeBinPath [ xdg-utils ]} \
+        --prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath [ udev ]}
 
       runHook postInstall
     '';