2020-08-20 17:08:02 +00:00
|
|
|
{ mkDerivation
|
2021-03-23 19:22:30 +00:00
|
|
|
, stdenv
|
2021-02-13 14:23:35 +00:00
|
|
|
, lib
|
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-08-08 23:34:03 +00:00
|
|
|
version = "0.5.0";
|
2020-08-20 17:08:02 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2021-08-08 23:34:03 +00:00
|
|
|
owner = "BambooTracker";
|
2020-08-20 17:08:02 +00:00
|
|
|
repo = "BambooTracker";
|
|
|
|
rev = "v${version}";
|
2021-08-08 23:34:03 +00:00
|
|
|
fetchSubmodules = true;
|
|
|
|
sha256 = "1mpbvhsmrn0wdmxfp3n5dwv4474qlhy47r3vwc2jwdslq6vgl1fa";
|
2020-08-20 17:08:02 +00:00
|
|
|
};
|
|
|
|
|
2021-02-13 14:23:35 +00:00
|
|
|
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-03-23 19:22:30 +00:00
|
|
|
postInstall = lib.optionalString stdenv.hostPlatform.isDarwin ''
|
2021-08-08 23:34:03 +00:00
|
|
|
mkdir -p $out/Applications
|
|
|
|
mv $out/{bin,Applications}/BambooTracker.app
|
|
|
|
ln -s $out/{Applications/BambooTracker.app/Contents/MacOS,bin}/BambooTracker
|
2021-03-23 19:22:30 +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-08-08 23:34:03 +00:00
|
|
|
homepage = "https://bambootracker.github.io/BambooTracker/";
|
|
|
|
license = licenses.gpl2Plus;
|
2020-08-20 17:08:02 +00:00
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = with maintainers; [ OPNA2608 ];
|
|
|
|
};
|
|
|
|
}
|