diff options
author | Orivej Desh <orivej@gmx.fr> | 2023-03-29 01:54:21 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-29 01:54:21 +0000 |
commit | ee0efdd6a02063bc66729d867c7c6b3375d8e80f (patch) | |
tree | d4765bcf1169077165572ea819bbba3586b1e86f | |
parent | 1ff621cf56e80869ed27f203835eab8ad85d408b (diff) |
patchance: init at 1.0.0 (#222623)
Fixes #194023
-rw-r--r-- | pkgs/applications/audio/patchance/default.nix | 37 | ||||
-rw-r--r-- | pkgs/top-level/all-packages.nix | 4 |
2 files changed, 41 insertions, 0 deletions
diff --git a/pkgs/applications/audio/patchance/default.nix b/pkgs/applications/audio/patchance/default.nix new file mode 100644 index 0000000000000..accba200e37fd --- /dev/null +++ b/pkgs/applications/audio/patchance/default.nix @@ -0,0 +1,37 @@ +{ lib, fetchurl, buildPythonApplication, pyqt5, qttools, which }: + +buildPythonApplication rec { + pname = "patchance"; + version = "1.0.0"; + + src = fetchurl { + url = "https://github.com/Houston4444/Patchance/releases/download/v${version}/Patchance-${version}-source.tar.gz"; + sha256 = "sha256-8Zn6xcDv4hBFXnaXK9xslYEB8uHEfIP+1NKvcPAyHj0="; + }; + + format = "other"; + + nativeBuildInputs = [ + pyqt5 # pyuic5 and pyrcc5 to build resources. + qttools # lrelease to build translations. + which # which to find lrelease. + ]; + + propagatedBuildInputs = [ pyqt5 ]; + + dontWrapQtApps = true; # The program is a python script. + + installFlags = [ "PREFIX=$(out)" ]; + + postFixup = '' + wrapPythonProgramsIn "$out/share/patchance/src" "$out $pythonPath" + ''; + + meta = with lib; { + homepage = "https://github.com/Houston4444/Patchance"; + description = "JACK Patchbay GUI"; + license = licenses.gpl2; + maintainers = with maintainers; [ orivej ]; + platforms = platforms.linux; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 9a7dfaf6fd1bc..7dc09423984a2 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -10926,6 +10926,10 @@ with pkgs; patchage = callPackage ../applications/audio/patchage { }; + patchance = python3Packages.callPackage ../applications/audio/patchance { + inherit (qt5) qttools; + }; + patatt = callPackage ../development/tools/patatt { }; pcapfix = callPackage ../tools/networking/pcapfix { }; |