From 57e73ca3ec6248576bf9822b7a265dbc1ecac13a Mon Sep 17 00:00:00 2001 From: pasqui23 Date: Tue, 8 Feb 2022 11:36:06 +0000 Subject: [PATCH] jamesdsp: init at 2.3 (#154158) --- pkgs/applications/audio/jamesdsp/default.nix | 64 ++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 + 2 files changed, 66 insertions(+) create mode 100644 pkgs/applications/audio/jamesdsp/default.nix diff --git a/pkgs/applications/audio/jamesdsp/default.nix b/pkgs/applications/audio/jamesdsp/default.nix new file mode 100644 index 000000000000..b4d4a02878d3 --- /dev/null +++ b/pkgs/applications/audio/jamesdsp/default.nix @@ -0,0 +1,64 @@ +{ lib +, mkDerivation +, fetchFromGitHub +, pipewire +, glibmm +, qmake +, makeDesktopItem +, pkg-config +, libarchive +, fetchpatch +}: + +mkDerivation rec{ + pname = "jamesdsp"; + version = "2.3"; + src = fetchFromGitHub rec{ + owner = "Audio4Linux"; + repo = "JDSP4Linux"; + fetchSubmodules = true; + rev = version; + hash = "sha256-Hkzurr+s+vvSyOMCYH9kHI+nIm6mL9yORGNzY2FXslc="; + }; + + patches = [ + # fixing /usr install assumption, remove on version bump + (fetchpatch { + url = "https://github.com/Audio4Linux/JDSP4Linux/commit/003c9e9fc426f83e269aed6e05be3ed55273931a.patch"; + hash = "sha256-crll/a7C9pUq9eL5diq8/YgC5bNC6SrdijZEBxZpJ8E="; + }) + ]; + + nativeBuildInputs = [ qmake pkg-config ]; + buildInputs = [ + glibmm + libarchive + pipewire + ]; + + desktopItems = [ + (makeDesktopItem { + name = "jamesdsp.desktop"; + desktopName = "JamesDSP"; + genericName = "Audio effects processor"; + exec = "jamesdsp"; + icon = "jamesdsp"; + comment = "JamesDSP for Linux"; + categories = "AudioVideo;Audio"; + startupNotify = false; + terminal = false; + type = "Application"; + extraDesktopEntries = { + Keywords = "equalizer;audio;effect"; + }; + }) + ]; + + meta = with lib;{ + description = "An audio effect processor for PipeWire clients"; + homepage = "https://github.com/Audio4Linux/JDSP4Linux"; + license = licenses.gpl3Only; + maintainers = with maintainers;[ pasqui23 ]; + platforms = platforms.linux; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 348f07b4a30a..454bbf667807 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -6733,6 +6733,8 @@ with pkgs; jadx = callPackage ../tools/security/jadx { }; + jamesdsp = libsForQt5.callPackage ../applications/audio/jamesdsp { }; + jazzy = callPackage ../development/tools/jazzy { }; jc = with python3Packages; toPythonApplication jc;