alfis: fix Failed to load ayatana-appindicator3 or appindicator3 dynamic library
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
fetchFromGitHub,
|
||||
pkg-config,
|
||||
makeWrapper,
|
||||
libayatana-appindicator,
|
||||
webkitgtk_4_1,
|
||||
xdotool,
|
||||
zenity,
|
||||
@@ -43,6 +44,11 @@ rustPlatform.buildRustPackage (finalAttrs: {
|
||||
"--skip=dns::client::tests::test_udp_client"
|
||||
];
|
||||
|
||||
postPatch = lib.optionalString stdenv.hostPlatform.isLinux ''
|
||||
substituteInPlace $cargoDepsCopy/*/libappindicator-sys-*/src/lib.rs \
|
||||
--replace-fail "libayatana-appindicator3.so.1" "${libayatana-appindicator}/lib/libayatana-appindicator3.so.1"
|
||||
'';
|
||||
|
||||
postInstall = lib.optionalString (withGui && stdenv.hostPlatform.isLinux) ''
|
||||
wrapProgram $out/bin/alfis \
|
||||
--prefix PATH : ${lib.makeBinPath [ zenity ]}
|
||||
|
||||
Reference in New Issue
Block a user