2022-11-21 17:40:18 +00:00
|
|
|
{ stdenv, lib, mkDerivation, fetchFromGitHub, qmake, pkg-config, alsa-lib, libjack2, portaudio, libogg, flac, libvorbis, rtmidi, qtsvg, qttools }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
mkDerivation rec {
|
2022-11-21 17:40:18 +00:00
|
|
|
version = "2.3.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "polyphone";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "davy7125";
|
|
|
|
repo = "polyphone";
|
|
|
|
rev = version;
|
2022-11-21 17:40:18 +00:00
|
|
|
sha256 = "09habv51pw71wrb39shqi80i2w39dx5a39klzswsald5j9sia0ir";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [
|
2021-06-28 23:13:55 +00:00
|
|
|
alsa-lib
|
2020-04-24 23:36:52 +00:00
|
|
|
libjack2
|
|
|
|
portaudio
|
|
|
|
libogg
|
|
|
|
flac
|
|
|
|
libvorbis
|
|
|
|
rtmidi
|
|
|
|
qtsvg
|
|
|
|
];
|
|
|
|
|
2022-11-21 17:40:18 +00:00
|
|
|
nativeBuildInputs = [ qmake qttools pkg-config ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
cd ./sources/
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
2024-02-07 01:22:34 +00:00
|
|
|
runHook preInstall
|
2020-04-24 23:36:52 +00:00
|
|
|
install -d $out/bin
|
|
|
|
install -m755 bin/polyphone $out/bin/
|
2024-02-07 01:22:34 +00:00
|
|
|
|
|
|
|
install -Dm444 ./contrib/com.polyphone_soundfonts.polyphone.desktop -t $out/share/applications/
|
|
|
|
install -Dm444 ./contrib/polyphone.svg -t $out/share/icons/hicolor/scalable/apps/
|
|
|
|
runHook postInstall
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
qmakeFlags = [
|
|
|
|
"DEFINES+=USE_LOCAL_STK"
|
|
|
|
"DEFINES+=USE_LOCAL_QCUSTOMPLOT"
|
|
|
|
];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2022-06-16 17:23:12 +00:00
|
|
|
broken = (stdenv.isLinux && stdenv.isAarch64);
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "A soundfont editor for creating musical instruments";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "polyphone";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://www.polyphone-soundfonts.com/";
|
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = [ maintainers.maxdamantus ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|