3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/audio/bambootracker/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

47 lines
1.1 KiB
Nix
Raw Normal View History

2020-07-31 20:45:35 +01:00
{ mkDerivation
, stdenv
2021-02-11 19:33:38 +00:00
, lib
2020-07-31 20:45:35 +01:00
, fetchFromGitHub
, 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";
2022-08-25 00:36:33 +01:00
version = "0.5.2";
2020-07-31 20:45:35 +01:00
src = fetchFromGitHub {
2021-08-01 19:35:05 +01:00
owner = "BambooTracker";
2020-07-31 20:45:35 +01:00
repo = "BambooTracker";
rev = "v${version}";
2021-08-01 19:35:05 +01:00
fetchSubmodules = true;
2022-08-25 00:36:33 +01:00
sha256 = "sha256-+9PmpmsF08oU//pJOWaoGQzG7a2O13kYqKbGwVRAMlU=";
2020-07-31 20:45:35 +01: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
postInstall = lib.optionalString stdenv.hostPlatform.isDarwin ''
2021-08-01 19:35:05 +01:00
mkdir -p $out/Applications
mv $out/{bin,Applications}/BambooTracker.app
ln -s $out/{Applications/BambooTracker.app/Contents/MacOS,bin}/BambooTracker
'';
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-08-01 19:35:05 +01:00
homepage = "https://bambootracker.github.io/BambooTracker/";
license = licenses.gpl2Plus;
2020-07-31 20:45:35 +01:00
platforms = platforms.all;
maintainers = with maintainers; [ OPNA2608 ];
};
}