2022-11-19 23:03:56 +01:00
|
|
|
{ stdenv, lib, mkDerivation, fetchFromGitHub, qmake, pkg-config, alsa-lib, libjack2, portaudio, libogg, flac, libvorbis, rtmidi, qtsvg, qttools }:
|
2020-04-11 07:33:45 +02:00
|
|
|
|
|
|
|
mkDerivation rec {
|
2022-11-19 23:03:56 +01:00
|
|
|
version = "2.3.0";
|
2020-04-11 07:33:45 +02:00
|
|
|
pname = "polyphone";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "davy7125";
|
|
|
|
repo = "polyphone";
|
|
|
|
rev = version;
|
2022-11-19 23:03:56 +01:00
|
|
|
sha256 = "09habv51pw71wrb39shqi80i2w39dx5a39klzswsald5j9sia0ir";
|
2020-04-11 07:33:45 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [
|
2021-06-10 04:57:09 +02:00
|
|
|
alsa-lib
|
2020-04-11 07:33:45 +02:00
|
|
|
libjack2
|
|
|
|
portaudio
|
|
|
|
libogg
|
|
|
|
flac
|
|
|
|
libvorbis
|
|
|
|
rtmidi
|
|
|
|
qtsvg
|
|
|
|
];
|
|
|
|
|
2022-11-19 23:03:56 +01:00
|
|
|
nativeBuildInputs = [ qmake qttools pkg-config ];
|
2020-04-11 07:33:45 +02: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 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2022-05-29 11:37:28 +02:00
|
|
|
broken = (stdenv.isLinux && stdenv.isAarch64);
|
2020-04-11 07:33:45 +02:00
|
|
|
description = "A soundfont editor for creating musical instruments";
|
2020-04-18 13:43:47 +02:00
|
|
|
homepage = "https://www.polyphone-soundfonts.com/";
|
2020-04-11 07:33:45 +02:00
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = [ maintainers.maxdamantus ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|