Skip to content

Commit

Permalink
idea: add libsecret to the library path
Browse files Browse the repository at this point in the history
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 a38466a)
  • Loading branch information
Ma27 authored and Mic92 committed Mar 3, 2018
1 parent 3b5a227 commit 1dcd022
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions 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:

Expand Down Expand Up @@ -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" \
Expand Down

0 comments on commit 1dcd022

Please sign in to comment.