From 48f16f281fbdb97d618cbd15e016cf35963e5f03 Mon Sep 17 00:00:00 2001 From: Danil <86075850+dan4ik605743@users.noreply.github.com> Date: Wed, 23 Jun 2021 20:23:31 +0700 Subject: [PATCH] add tonelib-gfx (#127712) --- maintainers/maintainer-list.nix | 6 ++ .../audio/tonelib-gfx/default.nix | 60 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 + 3 files changed, 68 insertions(+) create mode 100644 pkgs/applications/audio/tonelib-gfx/default.nix diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index d22487e5778f..c610e9855fa0 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -2269,6 +2269,12 @@ githubId = 1298344; name = "Daniel Fullmer"; }; + dan4ik605743 = { + email = "6057430gu@gmail.com"; + github = "dan4ik605743"; + githubId = 86075850; + name = "Danil Danevich"; + }; das-g = { email = "nixpkgs@raphael.dasgupta.ch"; github = "das-g"; diff --git a/pkgs/applications/audio/tonelib-gfx/default.nix b/pkgs/applications/audio/tonelib-gfx/default.nix new file mode 100644 index 000000000000..137014508a3c --- /dev/null +++ b/pkgs/applications/audio/tonelib-gfx/default.nix @@ -0,0 +1,60 @@ +{ stdenv +, dpkg +, lib +, autoPatchelfHook +, fetchurl +, gtk3 +, glib +, desktop-file-utils +, alsa-lib +, libjack2 +, harfbuzz +, fribidi +, pango +, freetype +}: + +stdenv.mkDerivation rec { + pname = "tonelib-gfx"; + version = "4.6.6"; + + src = fetchurl { + url = "https://www.tonelib.net/download/0509/ToneLib-GFX-amd64.deb"; + sha256 = "sha256-wdX3SQSr0IZHsTUl+1Y0iETme3gTyryexhZ/9XHkGeo="; + }; + + buildInputs = [ + dpkg + gtk3 + glib + desktop-file-utils + alsa-lib + libjack2 + harfbuzz + fribidi + pango + freetype + ]; + + nativeBuildInputs = [ + autoPatchelfHook + ]; + + unpackPhase = '' + mkdir -p $TMP/ $out/ + dpkg -x $src $TMP + ''; + + installPhase = '' + cp -R $TMP/usr/* $out/ + mv $out/bin/ToneLib-GFX $out/bin/tonelib-gfx + ''; + + meta = with lib; { + description = "Tonelib GFX is an amp and effects modeling software for electric guitar and bass."; + homepage = "https://tonelib.net/"; + license = licenses.unfree; + maintainers = with maintainers; [ dan4ik605743 ]; + platforms = platforms.linux; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 9c9f89777dbc..cccdf4210f16 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -27150,6 +27150,8 @@ in tortoisehg = callPackage ../applications/version-management/tortoisehg { }; + tonelib-gfx = callPackage ../applications/audio/tonelib-gfx { }; + tony = libsForQt514.callPackage ../applications/audio/tony { }; toot = callPackage ../applications/misc/toot { };