tuxguitar: apply suggestions

(cherry picked from commit 739e9ee35f)
This commit is contained in:
Celio Grand 2024-11-19 23:02:31 +08:00 committed by Bjørn Forsman
parent ba735dafdd
commit 0eae047357

View File

@ -11,7 +11,7 @@
libpulseaudio,
lilv,
which,
wrapGAppsHook,
wrapGAppsHook3,
nixosTests,
}:
@ -24,15 +24,13 @@ stdenv.mkDerivation (finalAttrs: {
hash = "sha256-FD1+7jV69E9AfTczjD6DOGD+pPlscg4o8A9ADBUM9B4=";
};
buildInputs = [
which
];
nativeBuildInputs = [
makeWrapper
wrapGAppsHook
wrapGAppsHook3
];
dontWrapGApps = true;
installPhase = ''
mkdir -p $out/bin
cp -r dist lib share $out/
@ -41,9 +39,12 @@ stdenv.mkDerivation (finalAttrs: {
ln -s $out/dist $out/bin/dist
ln -s $out/lib $out/bin/lib
ln -s $out/share $out/bin/share
'';
postFixup = ''
wrapProgram $out/bin/tuxguitar \
--set PATH "$PATH:${jre}/bin" \
"''${gappsWrapperArgs[@]}" \
--prefix PATH : ${lib.makeBinPath[ jre which ]} \
--prefix LD_LIBRARY_PATH : "$out/lib/:${
lib.makeLibraryPath [
swt