2020-08-20 17:08:02 +00:00
|
|
|
{ mkDerivation
|
2021-02-13 14:23:35 +00:00
|
|
|
, lib
|
|
|
|
, stdenv
|
2020-08-20 17:08:02 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, qmake
|
2021-02-13 14:23:35 +00:00
|
|
|
, pkg-config
|
2020-08-20 17:08:02 +00:00
|
|
|
, qttools
|
2021-02-13 14:23:35 +00:00
|
|
|
, qtbase
|
|
|
|
, rtaudio
|
|
|
|
, rtmidi
|
2020-08-20 17:08:02 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
mkDerivation rec {
|
|
|
|
pname = "bambootracker";
|
2021-02-13 14:23:35 +00:00
|
|
|
version = "0.4.6";
|
2020-08-20 17:08:02 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "rerrahkr";
|
|
|
|
repo = "BambooTracker";
|
|
|
|
rev = "v${version}";
|
2021-02-13 14:23:35 +00:00
|
|
|
sha256 = "0iddqfw951dw9xpl4w7310sl4z544507ppb12i8g4fzvlxfw2ifc";
|
2020-08-20 17:08:02 +00:00
|
|
|
};
|
|
|
|
|
2021-02-13 14:23:35 +00:00
|
|
|
postPatch = lib.optionalString stdenv.hostPlatform.isDarwin ''
|
|
|
|
substituteInPlace BambooTracker/BambooTracker.pro \
|
|
|
|
--replace '# Temporary known-error downgrades here' 'CPP_WARNING_FLAGS += -Wno-missing-braces'
|
|
|
|
'';
|
|
|
|
|
|
|
|
nativeBuildInputs = [ qmake qttools pkg-config ];
|
2020-08-20 17:08:02 +00:00
|
|
|
|
2021-02-13 14:23:35 +00:00
|
|
|
buildInputs = [ qtbase rtaudio rtmidi ];
|
2020-08-20 17:08:02 +00:00
|
|
|
|
2021-02-13 14:23:35 +00:00
|
|
|
qmakeFlags = [ "CONFIG+=system_rtaudio" "CONFIG+=system_rtmidi" ];
|
2020-08-20 17:08:02 +00:00
|
|
|
|
2021-02-13 14:23:35 +00:00
|
|
|
postConfigure = "make qmake_all";
|
2020-08-20 17:08:02 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-08-20 17:08:02 +00:00
|
|
|
description = "A tracker for YM2608 (OPNA) which was used in NEC PC-8801/9801 series computers";
|
2021-02-13 14:23:35 +00:00
|
|
|
homepage = "https://rerrahkr.github.io/BambooTracker";
|
2020-08-20 17:08:02 +00:00
|
|
|
license = licenses.gpl2Only;
|
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = with maintainers; [ OPNA2608 ];
|
2021-02-13 14:23:35 +00:00
|
|
|
broken = stdenv.isDarwin;
|
2020-08-20 17:08:02 +00:00
|
|
|
};
|
|
|
|
}
|