diff options
author | OPNA2608 <christoph.neidahl@gmail.com> | 2021-03-15 10:14:33 +0100 |
---|---|---|
committer | OPNA2608 <christoph.neidahl@gmail.com> | 2021-03-15 10:14:33 +0100 |
commit | 62d2e5d61eedf770f488fe7dcefe5afc08d329fe (patch) | |
tree | ff734540f5b4c46b4d4deaac666af1fbf586f392 /pkgs/applications/audio/bambootracker | |
parent | 7163929ceece23d17f5198e35c0c2c6cff1bc625 (diff) | |
download | nixpkgs-62d2e5d61eedf770f488fe7dcefe5afc08d329fe.tar nixpkgs-62d2e5d61eedf770f488fe7dcefe5afc08d329fe.tar.gz nixpkgs-62d2e5d61eedf770f488fe7dcefe5afc08d329fe.tar.bz2 nixpkgs-62d2e5d61eedf770f488fe7dcefe5afc08d329fe.tar.lz nixpkgs-62d2e5d61eedf770f488fe7dcefe5afc08d329fe.tar.xz nixpkgs-62d2e5d61eedf770f488fe7dcefe5afc08d329fe.tar.zst nixpkgs-62d2e5d61eedf770f488fe7dcefe5afc08d329fe.zip |
bambootracker: fix executable on Darwin
Diffstat (limited to 'pkgs/applications/audio/bambootracker')
-rw-r--r-- | pkgs/applications/audio/bambootracker/default.nix | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/pkgs/applications/audio/bambootracker/default.nix b/pkgs/applications/audio/bambootracker/default.nix index ac405cde644..09be8faa8a0 100644 --- a/pkgs/applications/audio/bambootracker/default.nix +++ b/pkgs/applications/audio/bambootracker/default.nix @@ -1,4 +1,5 @@ { mkDerivation +, stdenv , lib , fetchFromGitHub , fetchpatch @@ -39,6 +40,14 @@ mkDerivation rec { 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; { description = "A tracker for YM2608 (OPNA) which was used in NEC PC-8801/9801 series computers"; homepage = "https://rerrahkr.github.io/BambooTracker"; |