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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

51 lines
1.1 KiB
Nix
Raw Normal View History

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 = [
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"
];
meta = with lib; {
broken = (stdenv.isLinux && stdenv.isAarch64);
2020-04-11 07:33:45 +02:00
description = "A soundfont editor for creating musical instruments";
homepage = "https://www.polyphone-soundfonts.com/";
2020-04-11 07:33:45 +02:00
license = licenses.gpl3;
maintainers = [ maintainers.maxdamantus ];
platforms = platforms.linux;
};
}