polyphone: 2.3.0 -> 2.4.0 (#341677)

This commit is contained in:
Peder Bergebakken Sundt
2024-09-17 00:31:39 +02:00
committed by GitHub
2 changed files with 40 additions and 21 deletions

View File

@@ -1,46 +1,62 @@
{ stdenv, lib, mkDerivation, fetchFromGitHub, qmake, pkg-config, alsa-lib, libjack2, portaudio, libogg, flac, libvorbis, rtmidi, qtsvg, qttools }:
{
stdenv,
lib,
fetchFromGitHub,
pkg-config,
qmake,
qttools,
wrapQtAppsHook,
alsa-lib,
flac,
libjack2,
libogg,
libvorbis,
qtsvg,
qtwayland,
rtmidi,
}:
mkDerivation rec {
version = "2.3.0";
stdenv.mkDerivation rec {
version = "2.4.0";
pname = "polyphone";
src = fetchFromGitHub {
owner = "davy7125";
repo = "polyphone";
rev = version;
sha256 = "09habv51pw71wrb39shqi80i2w39dx5a39klzswsald5j9sia0ir";
hash = "sha256-cPHLmqsS4ReqOCcsgOf77V/ShIkk7chGoJ6bU4W5ejs=";
};
nativeBuildInputs = [
pkg-config
qmake
qttools
wrapQtAppsHook
];
buildInputs = [
alsa-lib
libjack2
portaudio
libogg
flac
libjack2
libogg
libvorbis
rtmidi
qtsvg
qtwayland
rtmidi
];
nativeBuildInputs = [ qmake qttools pkg-config ];
preConfigure = ''
cd ./sources/
'';
installPhase = ''
runHook preInstall
install -d $out/bin
install -m755 bin/polyphone $out/bin/
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
postConfigure = ''
# Work around https://github.com/NixOS/nixpkgs/issues/214765
substituteInPlace Makefile \
--replace-fail "$(dirname $QMAKE)/lrelease" "${lib.getBin qttools}/bin/lrelease"
'';
qmakeFlags = [
"DEFINES+=USE_LOCAL_STK"
"DEFINES+=USE_LOCAL_QCUSTOMPLOT"
];
meta = with lib; {
@@ -49,7 +65,10 @@ mkDerivation rec {
mainProgram = "polyphone";
homepage = "https://www.polyphone-soundfonts.com/";
license = licenses.gpl3;
maintainers = [ maintainers.maxdamantus ];
maintainers = with maintainers; [
maxdamantus
orivej
];
platforms = platforms.linux;
};
}

View File

@@ -32029,7 +32029,7 @@ with pkgs;
yambar-hyprland-wses = callPackage ../applications/misc/yambar-hyprland-wses { };
polyphone = libsForQt5.callPackage ../applications/audio/polyphone { };
polyphone = qt6.callPackage ../applications/audio/polyphone { };
psi-notify = callPackage ../applications/misc/psi-notify { };