mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 00:12:56 +00:00
tuxguitar: apply suggestions
This commit is contained in:
parent
810fcd88f8
commit
739e9ee35f
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user