Skip to content

Commit

Permalink
polyphone: 2.3.0 -> 2.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
orivej committed Sep 14, 2024
1 parent 12a58ef commit 521c3da
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 20 deletions.
57 changes: 38 additions & 19 deletions pkgs/applications/audio/polyphone/default.nix
Original file line number Diff line number Diff line change
@@ -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
flac
libjack2
portaudio
libogg
flac
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; {
Expand All @@ -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;
};
}
2 changes: 1 addition & 1 deletion pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -32094,7 +32094,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 { };

Expand Down

0 comments on commit 521c3da

Please sign in to comment.