2020-07-31 20:45:35 +01:00
|
|
|
{ mkDerivation
|
2021-02-11 19:33:38 +00:00
|
|
|
, lib
|
2020-07-31 20:45:35 +01:00
|
|
|
, fetchFromGitHub
|
2021-02-16 07:30:06 +00:00
|
|
|
, fetchpatch
|
2020-07-31 20:45:35 +01:00
|
|
|
, qmake
|
2021-02-11 19:33:38 +00:00
|
|
|
, pkg-config
|
2020-07-31 20:45:35 +01:00
|
|
|
, qttools
|
2021-02-11 19:33:38 +00:00
|
|
|
, qtbase
|
|
|
|
, rtaudio
|
|
|
|
, rtmidi
|
2020-07-31 20:45:35 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
mkDerivation rec {
|
|
|
|
pname = "bambootracker";
|
2021-02-11 19:33:38 +00:00
|
|
|
version = "0.4.6";
|
2020-07-31 20:45:35 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "rerrahkr";
|
|
|
|
repo = "BambooTracker";
|
|
|
|
rev = "v${version}";
|
2021-02-11 19:33:38 +00:00
|
|
|
sha256 = "0iddqfw951dw9xpl4w7310sl4z544507ppb12i8g4fzvlxfw2ifc";
|
2020-07-31 20:45:35 +01:00
|
|
|
};
|
|
|
|
|
2021-02-16 07:30:06 +00:00
|
|
|
# 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";
|
|
|
|
})
|
|
|
|
];
|
2021-02-12 08:47:20 +00:00
|
|
|
|
2021-02-11 19:33:38 +00:00
|
|
|
nativeBuildInputs = [ qmake qttools pkg-config ];
|
2020-07-31 20:45:35 +01:00
|
|
|
|
2021-02-11 19:33:38 +00:00
|
|
|
buildInputs = [ qtbase rtaudio rtmidi ];
|
2020-07-31 20:45:35 +01:00
|
|
|
|
2021-02-11 19:33:38 +00:00
|
|
|
qmakeFlags = [ "CONFIG+=system_rtaudio" "CONFIG+=system_rtmidi" ];
|
2020-07-31 20:45:35 +01:00
|
|
|
|
2021-02-11 19:33:38 +00:00
|
|
|
postConfigure = "make qmake_all";
|
2020-07-31 20:45:35 +01:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-07-31 20:45:35 +01:00
|
|
|
description = "A tracker for YM2608 (OPNA) which was used in NEC PC-8801/9801 series computers";
|
2021-02-11 19:33:38 +00:00
|
|
|
homepage = "https://rerrahkr.github.io/BambooTracker";
|
2020-07-31 20:45:35 +01:00
|
|
|
license = licenses.gpl2Only;
|
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = with maintainers; [ OPNA2608 ];
|
|
|
|
};
|
|
|
|
}
|