1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-09-11 15:08:33 +01:00

Merge pull request #278514 from zendo/upd/gitnuro

gitnuro: add libGL
This commit is contained in:
Peder Bergebakken Sundt 2024-05-31 20:05:03 +02:00 committed by GitHub
commit eda06d1214
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -5,6 +5,7 @@
, copyDesktopItems
, makeDesktopItem
, jre
, libGL
}:
stdenv.mkDerivation rec {
@ -30,8 +31,13 @@ stdenv.mkDerivation rec {
installPhase = ''
runHook preInstall
makeWrapper ${jre}/bin/java $out/bin/gitnuro --add-flags "-jar $src"
makeWrapper ${jre}/bin/java $out/bin/gitnuro \
--prefix LD_LIBRARY_PATH : "${lib.makeLibraryPath [ libGL ]}" \
--add-flags "-jar $src"
install -Dm444 $icon $out/share/icons/hicolor/scalable/apps/com.jetpackduba.Gitnuro.svg
runHook postInstall
'';
@ -51,6 +57,7 @@ stdenv.mkDerivation rec {
homepage = "https://gitnuro.com/";
license = licenses.gpl3Plus;
platforms = [ "x86_64-linux" ];
sourceProvenance = with sourceTypes; [ binaryBytecode ];
maintainers = with maintainers; [ zendo ];
mainProgram = "gitnuro";
};