diff options
author | Guanran Wang <guanran928@outlook.com> | 2024-03-22 02:03:13 +0800 |
---|---|---|
committer | Weijia Wang <9713184+wegank@users.noreply.github.com> | 2024-03-23 14:42:28 +0100 |
commit | 7b058b7d0e9b934a8d9614453a229010276cdf5f (patch) | |
tree | 3c805a2cce20cbae11fdb55c83c6b18a2d3d166c /pkgs/by-name/sp | |
parent | 952804a3d25df456584e1c95b42a7196b35b2ebf (diff) |
spotube: use makeBinaryWrapper
Diffstat (limited to 'pkgs/by-name/sp')
-rw-r--r-- | pkgs/by-name/sp/spotube/package.nix | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/pkgs/by-name/sp/spotube/package.nix b/pkgs/by-name/sp/spotube/package.nix index c5b29a43187e5..57411c32068ff 100644 --- a/pkgs/by-name/sp/spotube/package.nix +++ b/pkgs/by-name/sp/spotube/package.nix @@ -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 ''; }; |