bambootracker: 0.4.6 -> 0.5.0
This commit is contained in:
parent
6376458424
commit
184f1ffea0
|
@ -2,7 +2,6 @@
|
||||||
, stdenv
|
, stdenv
|
||||||
, lib
|
, lib
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, fetchpatch
|
|
||||||
, qmake
|
, qmake
|
||||||
, pkg-config
|
, pkg-config
|
||||||
, qttools
|
, qttools
|
||||||
|
@ -13,25 +12,16 @@
|
||||||
|
|
||||||
mkDerivation rec {
|
mkDerivation rec {
|
||||||
pname = "bambootracker";
|
pname = "bambootracker";
|
||||||
version = "0.4.6";
|
version = "0.5.0";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "rerrahkr";
|
owner = "BambooTracker";
|
||||||
repo = "BambooTracker";
|
repo = "BambooTracker";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "0iddqfw951dw9xpl4w7310sl4z544507ppb12i8g4fzvlxfw2ifc";
|
fetchSubmodules = true;
|
||||||
|
sha256 = "1mpbvhsmrn0wdmxfp3n5dwv4474qlhy47r3vwc2jwdslq6vgl1fa";
|
||||||
};
|
};
|
||||||
|
|
||||||
# TODO Remove when updating past 0.4.6
|
|
||||||
# Fixes build failure on darwin
|
|
||||||
patches = [
|
|
||||||
(fetchpatch {
|
|
||||||
name = "bambootracker-Add_braces_in_initialization_of_std-array.patch";
|
|
||||||
url = "https://github.com/rerrahkr/BambooTracker/commit/0fc96c60c7ae6c2504ee696bb7dec979ac19717d.patch";
|
|
||||||
sha256 = "1z28af46mqrgnyrr4i8883gp3wablkk8rijnj0jvpq01s4m2sfjn";
|
|
||||||
})
|
|
||||||
];
|
|
||||||
|
|
||||||
nativeBuildInputs = [ qmake qttools pkg-config ];
|
nativeBuildInputs = [ qmake qttools pkg-config ];
|
||||||
|
|
||||||
buildInputs = [ qtbase rtaudio rtmidi ];
|
buildInputs = [ qtbase rtaudio rtmidi ];
|
||||||
|
@ -40,18 +30,20 @@ mkDerivation rec {
|
||||||
|
|
||||||
postConfigure = "make qmake_all";
|
postConfigure = "make qmake_all";
|
||||||
|
|
||||||
# installs app bundle on darwin, re-extract the binary
|
# 1. installs app bundle on darwin, move to app bundle dir & link binary to bin
|
||||||
# wrapQtAppsHook fails to wrap mach-o binaries, manually call wrapper (https://github.com/NixOS/nixpkgs/issues/102044)
|
# 2. wrapQtAppsHook fails to wrap mach-o binaries automatically, manually call wrapper
|
||||||
|
# (see https://github.com/NixOS/nixpkgs/issues/102044)
|
||||||
postInstall = lib.optionalString stdenv.hostPlatform.isDarwin ''
|
postInstall = lib.optionalString stdenv.hostPlatform.isDarwin ''
|
||||||
mv $out/bin/BambooTracker{.app/Contents/MacOS/BambooTracker,}
|
mkdir -p $out/Applications
|
||||||
rm -r $out/bin/BambooTracker.app
|
mv $out/{bin,Applications}/BambooTracker.app
|
||||||
wrapQtApp $out/bin/BambooTracker
|
wrapQtApp $out/Applications/BambooTracker.app/Contents/MacOS/BambooTracker
|
||||||
|
ln -s $out/{Applications/BambooTracker.app/Contents/MacOS,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://bambootracker.github.io/BambooTracker/";
|
||||||
license = licenses.gpl2Only;
|
license = licenses.gpl2Plus;
|
||||||
platforms = platforms.all;
|
platforms = platforms.all;
|
||||||
maintainers = with maintainers; [ OPNA2608 ];
|
maintainers = with maintainers; [ OPNA2608 ];
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue