Loading pkgs/applications/audio/polyphone/default.nix +38 −19 Original line number Diff line number Diff line { 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; { Loading @@ -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; }; } pkgs/top-level/all-packages.nix +1 −1 Original line number Diff line number Diff line Loading @@ -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 { }; Loading
pkgs/applications/audio/polyphone/default.nix +38 −19 Original line number Diff line number Diff line { 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; { Loading @@ -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; }; }
pkgs/top-level/all-packages.nix +1 −1 Original line number Diff line number Diff line Loading @@ -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 { };