3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/audio/polyphone/default.nix
Jonathan Ringer 9bb3fccb5b treewide: pkgs.pkgconfig -> pkgs.pkg-config, move pkgconfig to alias.nix
continuation of #109595

pkgconfig was aliased in 2018, however, it remained in
all-packages.nix due to its wide usage. This cleans
up the remaining references to pkgs.pkgsconfig and
moves the entry to aliases.nix.

python3Packages.pkgconfig remained unchanged because
it's the canonical name of the upstream package
on pypi.
2021-01-19 01:16:25 -08:00

50 lines
1 KiB
Nix

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