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

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

56 lines
1.3 KiB
Nix
Raw Normal View History

2022-11-19 22:03:56 +00:00
{ stdenv, lib, mkDerivation, fetchFromGitHub, qmake, pkg-config, alsa-lib, libjack2, portaudio, libogg, flac, libvorbis, rtmidi, qtsvg, qttools }:
2020-04-11 05:33:45 +00:00
mkDerivation rec {
2022-11-19 22:03:56 +00:00
version = "2.3.0";
2020-04-11 05:33:45 +00:00
pname = "polyphone";
src = fetchFromGitHub {
owner = "davy7125";
repo = "polyphone";
rev = version;
2022-11-19 22:03:56 +00:00
sha256 = "09habv51pw71wrb39shqi80i2w39dx5a39klzswsald5j9sia0ir";
2020-04-11 05:33:45 +00:00
};
buildInputs = [
alsa-lib
2020-04-11 05:33:45 +00:00
libjack2
portaudio
libogg
flac
libvorbis
rtmidi
qtsvg
];
2022-11-19 22:03:56 +00:00
nativeBuildInputs = [ qmake qttools pkg-config ];
2020-04-11 05:33:45 +00:00
preConfigure = ''
cd ./sources/
'';
installPhase = ''
2024-01-29 19:21:23 +00:00
runHook preInstall
2020-04-11 05:33:45 +00:00
install -d $out/bin
install -m755 bin/polyphone $out/bin/
2024-01-29 19:21:23 +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-11 05:33:45 +00:00
'';
qmakeFlags = [
"DEFINES+=USE_LOCAL_STK"
"DEFINES+=USE_LOCAL_QCUSTOMPLOT"
];
meta = with lib; {
broken = (stdenv.isLinux && stdenv.isAarch64);
2020-04-11 05:33:45 +00:00
description = "A soundfont editor for creating musical instruments";
mainProgram = "polyphone";
homepage = "https://www.polyphone-soundfonts.com/";
2020-04-11 05:33:45 +00:00
license = licenses.gpl3;
maintainers = [ maintainers.maxdamantus ];
platforms = platforms.linux;
};
}