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

50 lines
1.0 KiB
Nix
Raw Normal View History

{ lib, mkDerivation, fetchFromGitHub, qmake, pkg-config, alsa-lib, libjack2, portaudio, libogg, flac, libvorbis, rtmidi, qtsvg }:
2020-04-11 05:33:45 +00:00
mkDerivation rec {
version = "2.2.0";
pname = "polyphone";
src = fetchFromGitHub {
owner = "davy7125";
repo = "polyphone";
rev = version;
sha256 = "0w5pidzhpwpggjn5la384fvjzkvprvrnidb06068whci11kgpbp7";
};
buildInputs = [
alsa-lib
2020-04-11 05:33:45 +00:00
libjack2
portaudio
libogg
flac
libvorbis
rtmidi
qtsvg
];
nativeBuildInputs = [ qmake pkg-config ];
2020-04-11 05:33:45 +00: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"
];
meta = with lib; {
2020-04-11 05:33:45 +00:00
description = "A soundfont editor for creating musical instruments";
homepage = "https://www.polyphone-soundfonts.com/";
2020-04-11 05:33:45 +00:00
license = licenses.gpl3;
maintainers = [ maintainers.maxdamantus ];
platforms = platforms.linux;
};
}