angryipscanner: Fix to patch swt error (#338234)

This commit is contained in:
Maciej Krüger 2024-10-27 23:23:57 +01:00 committed by GitHub
commit 0135605f60
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -7,6 +7,8 @@
, makeWrapper
, xorg
, dpkg
, gtk3
, glib
}:
stdenv.mkDerivation rec {
@ -30,7 +32,7 @@ stdenv.mkDerivation rec {
cp usr/lib/ipscan/ipscan-linux64-${version}.jar $out/share/${pname}-${version}.jar
makeWrapper ${jre}/bin/java $out/bin/ipscan \
--prefix LD_LIBRARY_PATH : "$out/lib/:${lib.makeLibraryPath [ swt xorg.libXtst ]}" \
--prefix LD_LIBRARY_PATH : "$out/lib/:${lib.makeLibraryPath [ swt xorg.libXtst gtk3 glib ]}" \
--add-flags "-Xmx256m -cp $out/share/${pname}-${version}.jar:${swt}/jars/swt.jar net.azib.ipscan.Main"
mkdir -p $out/share/applications