From 1dcd022f01b251b1656f349dcf749c0890de2799 Mon Sep 17 00:00:00 2001 From: Maximilian Bosch Date: Sat, 3 Mar 2018 14:34:44 +0100 Subject: [PATCH] idea: add `libsecret` to the library path This solves the `Cannot access native keychain` warning from IntelliJ-based IDEs. Previously IDEA was unable to find `libsecret` as it was not part of its library path. Please keep in mind that the keyring daemon that can be enabled on NixOS with `services.gnome3.gnome-keyring.enable = true` must be running. (cherry picked from commit a38466a340c88688231b3fadcfa0a0bbc812fa62) --- pkgs/applications/editors/jetbrains/common.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/editors/jetbrains/common.nix b/pkgs/applications/editors/jetbrains/common.nix index a7ac367f048acc..7715de153981d9 100644 --- a/pkgs/applications/editors/jetbrains/common.nix +++ b/pkgs/applications/editors/jetbrains/common.nix @@ -1,5 +1,6 @@ { stdenv, fetchurl, makeDesktopItem, makeWrapper, patchelf, p7zip -, coreutils, gnugrep, which, git, python, unzip }: +, coreutils, gnugrep, which, git, python, unzip, libsecret +}: { name, product, version, src, wmClass, jdk, meta } @ attrs: @@ -65,7 +66,7 @@ with stdenv; lib.makeOverridable mkDerivation rec { --prefix PATH : "$out/libexec/${name}:${stdenv.lib.makeBinPath [ jdk coreutils gnugrep which git ]}" \ --prefix LD_LIBRARY_PATH : "${stdenv.lib.makeLibraryPath [ # Some internals want libstdc++.so.6 - stdenv.cc.cc.lib + stdenv.cc.cc.lib libsecret ]}" \ --set JDK_HOME "$jdk" \ --set ${hiName}_JDK "$jdk" \