bambootracker: fix executable on Darwin
This commit is contained in:
parent
7163929cee
commit
62d2e5d61e
|
@ -1,4 +1,5 @@
|
||||||
{ mkDerivation
|
{ mkDerivation
|
||||||
|
, stdenv
|
||||||
, lib
|
, lib
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, fetchpatch
|
, fetchpatch
|
||||||
|
@ -39,6 +40,14 @@ mkDerivation rec {
|
||||||
|
|
||||||
postConfigure = "make qmake_all";
|
postConfigure = "make qmake_all";
|
||||||
|
|
||||||
|
# installs app bundle on darwin, re-extract the binary
|
||||||
|
# wrapQtAppsHook fails to wrap mach-o binaries, manually call wrapper (https://github.com/NixOS/nixpkgs/issues/102044)
|
||||||
|
postInstall = lib.optionalString stdenv.hostPlatform.isDarwin ''
|
||||||
|
mv $out/bin/BambooTracker{.app/Contents/MacOS/BambooTracker,}
|
||||||
|
rm -r $out/bin/BambooTracker.app
|
||||||
|
wrapQtApp $out/bin/BambooTracker
|
||||||
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "A tracker for YM2608 (OPNA) which was used in NEC PC-8801/9801 series computers";
|
description = "A tracker for YM2608 (OPNA) which was used in NEC PC-8801/9801 series computers";
|
||||||
homepage = "https://rerrahkr.github.io/BambooTracker";
|
homepage = "https://rerrahkr.github.io/BambooTracker";
|
||||||
|
|
Loading…
Reference in New Issue