nixpkgs/pkgs/applications/audio/bambootracker/default.nix

51 lines
1.2 KiB
Nix
Raw Normal View History

2020-07-31 19:45:35 +00:00
{ mkDerivation
, lib, stdenv
2020-07-31 19:45:35 +00:00
, fetchFromGitHub
, qmake
, qtbase
, qttools
, alsaSupport ? stdenv.hostPlatform.isLinux
, alsaLib
, pulseSupport ? stdenv.hostPlatform.isLinux
, libpulseaudio
, jackSupport ? stdenv.hostPlatform.isUnix
, libjack2
}:
let
inherit (stdenv.lib) optional optionals;
in
mkDerivation rec {
pname = "bambootracker";
2020-11-08 14:59:45 +00:00
version = "0.4.5";
2020-07-31 19:45:35 +00:00
src = fetchFromGitHub {
owner = "rerrahkr";
repo = "BambooTracker";
rev = "v${version}";
2020-11-08 14:59:45 +00:00
sha256 = "0ibi0sykxf6cp5la2c4pgxf5gvy56yv259fbmdwdrdyv6vlddf42";
2020-07-31 19:45:35 +00:00
};
2020-08-22 11:11:43 +00:00
sourceRoot = "source/BambooTracker";
2020-07-31 19:45:35 +00:00
2020-08-22 11:11:43 +00:00
nativeBuildInputs = [ qmake qttools ];
2020-07-31 19:45:35 +00:00
2020-11-08 14:59:45 +00:00
buildInputs = [ qtbase ]
2020-07-31 19:45:35 +00:00
++ optional alsaSupport alsaLib
++ optional pulseSupport libpulseaudio
++ optional jackSupport libjack2;
qmakeFlags = [ "CONFIG+=release" "CONFIG-=debug" ]
++ optional pulseSupport "CONFIG+=use_pulse"
++ optionals jackSupport [ "CONFIG+=use_jack" "CONFIG+=jack_has_rename" ];
meta = with lib; {
2020-07-31 19:45:35 +00:00
description = "A tracker for YM2608 (OPNA) which was used in NEC PC-8801/9801 series computers";
homepage = "https://github.com/rerrahkr/BambooTracker";
license = licenses.gpl2Only;
platforms = platforms.all;
maintainers = with maintainers; [ OPNA2608 ];
};
}