archi: fix gtk errors (#220080)

This commit is contained in:
paumr 2023-03-19 21:30:40 +01:00 committed by GitHub
parent 8e8c64611b
commit 40035456cf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -5,6 +5,8 @@
, makeWrapper
, jdk
, libsecret
, webkitgtk
, wrapGAppsHook
}:
stdenv.mkDerivation rec {
@ -31,6 +33,7 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [
makeWrapper
wrapGAppsHook
] ++ lib.optional stdenv.hostPlatform.isLinux autoPatchelfHook;
installPhase =
@ -43,6 +46,7 @@ stdenv.mkDerivation rec {
install -D -m755 Archi $out/libexec/Archi
makeWrapper $out/libexec/Archi $out/bin/Archi \
--prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath ([ webkitgtk ])} \
--prefix PATH : ${jdk}/bin
''
else