2021-01-25 08:26:54 +00:00
|
|
|
{ lib, mkDerivation, fetchFromGitHub, qmake, pkg-config, alsaLib, libjack2, portaudio, libogg, flac, libvorbis, rtmidi, qtsvg }:
|
2020-04-11 06:33:45 +01:00
|
|
|
|
|
|
|
mkDerivation rec {
|
|
|
|
version = "2.2.0";
|
|
|
|
pname = "polyphone";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "davy7125";
|
|
|
|
repo = "polyphone";
|
|
|
|
rev = version;
|
|
|
|
sha256 = "0w5pidzhpwpggjn5la384fvjzkvprvrnidb06068whci11kgpbp7";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
alsaLib
|
|
|
|
libjack2
|
|
|
|
portaudio
|
|
|
|
libogg
|
|
|
|
flac
|
|
|
|
libvorbis
|
|
|
|
rtmidi
|
|
|
|
qtsvg
|
|
|
|
];
|
|
|
|
|
2021-01-19 06:50:56 +00:00
|
|
|
nativeBuildInputs = [ qmake pkg-config ];
|
2020-04-11 06:33:45 +01:00
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
cd ./sources/
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
install -d $out/bin
|
|
|
|
install -m755 bin/polyphone $out/bin/
|
|
|
|
'';
|
|
|
|
|
|
|
|
qmakeFlags = [
|
|
|
|
"DEFINES+=USE_LOCAL_STK"
|
|
|
|
"DEFINES+=USE_LOCAL_QCUSTOMPLOT"
|
|
|
|
"INCLUDEPATH+=${libjack2}/include/jack"
|
|
|
|
];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-11 06:33:45 +01:00
|
|
|
description = "A soundfont editor for creating musical instruments";
|
2020-04-18 12:43:47 +01:00
|
|
|
homepage = "https://www.polyphone-soundfonts.com/";
|
2020-04-11 06:33:45 +01:00
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = [ maintainers.maxdamantus ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|