gnome.gnome-keyring: support cross compilation

This commit is contained in:
Colin 2024-05-13 17:27:30 +00:00
parent 8fe1aa6825
commit 56bc064c0f

View File

@ -63,6 +63,9 @@ stdenv.mkDerivation rec {
# gnome-keyring doesn't build with ssh-agent by default anymore, we need to
# switch to using gcr https://github.com/NixOS/nixpkgs/issues/140824
"--enable-ssh-agent"
"LIBGCRYPT_CONFIG=${lib.getExe' (lib.getDev libgcrypt) "libgcrypt-config"}"
"SSH_ADD=${lib.getExe' openssh "ssh-add"}"
"SSH_AGENT=${lib.getExe' openssh "ssh-agent"}"
];
# Tends to fail non-deterministically.
@ -72,6 +75,7 @@ stdenv.mkDerivation rec {
postPatch = ''
patchShebangs build
addToSearchPath ACLOCAL_PATH ${lib.getDev libgcrypt}/share/aclocal
'';
checkPhase = ''