Merge pull request #297790 from Guanran928/spotube

spotube: use `makeBinaryWrapper`
This commit is contained in:
Pol Dellaiera 2024-03-23 19:42:40 +01:00 committed by GitHub
commit 8e8752b3f0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -4,6 +4,7 @@
, autoPatchelfHook
, dpkg
, makeBinaryWrapper
, makeWrapper
, undmg
, wrapGAppsHook
@ -51,13 +52,13 @@ let
sourceRoot = ".";
nativeBuildInputs = [ undmg ];
nativeBuildInputs = [ undmg makeBinaryWrapper ];
installPhase = ''
runHook preInstall
mkdir -p $out/Applications $out/bin
cp -r spotube.app $out/Applications
ln -s $out/Applications/spotube.app/Contents/MacOS/spotube $out/bin/spotube
makeBinaryWrapper $out/Applications/spotube.app/Contents/MacOS/spotube $out/bin/spotube
runHook postInstall
'';
};