From 59d6aba0dc9c8553fd2e6f39f4e471513b87d480 Mon Sep 17 00:00:00 2001 From: Knarkzel <85593302+knarkzel@users.noreply.github.com> Date: Mon, 11 Sep 2023 21:13:39 +0200 Subject: [PATCH 1/2] maintainers: add knarkzel and nyanbinary --- maintainers/maintainer-list.nix | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index c9564b433e9c..5c15b501cbad 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -9245,6 +9245,12 @@ github = "KnairdA"; githubId = 498373; }; + knarkzel = { + email = "knarkzel@gmail.com"; + name = "Knarkzel"; + github = "Knarkzel"; + githubId = 85593302; + }; knedlsepp = { email = "josef.kemetmueller@gmail.com"; github = "knedlsepp"; @@ -12742,6 +12748,12 @@ githubId = 16027994; name = "Nathan Viets"; }; + nyanbinary = { + email = "vextium@skiff.com"; + github = "nyabinary"; + githubId = 97130632; + name = "Niko"; + }; nyanloutre = { email = "paul@nyanlout.re"; github = "nyanloutre"; From abe6f84302896434c871f868abdd93d02e02acaa Mon Sep 17 00:00:00 2001 From: Knarkzel <85593302+knarkzel@users.noreply.github.com> Date: Mon, 11 Sep 2023 21:11:39 +0200 Subject: [PATCH 2/2] headphones-toolbox: init at 0.0.3 --- .../by-name/he/headphones-toolbox/package.nix | 47 +++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 pkgs/by-name/he/headphones-toolbox/package.nix diff --git a/pkgs/by-name/he/headphones-toolbox/package.nix b/pkgs/by-name/he/headphones-toolbox/package.nix new file mode 100644 index 000000000000..d0f01961e6b6 --- /dev/null +++ b/pkgs/by-name/he/headphones-toolbox/package.nix @@ -0,0 +1,47 @@ +{ lib +, stdenv +, dpkg +, fetchurl +, autoPatchelfHook +, webkitgtk +}: + +stdenv.mkDerivation (finalAttrs: { + name = "headphones-toolbox"; + version = "0.0.3"; + + src = fetchurl { + url = "https://github.com/george-norton/headphones-toolbox/releases/download/headphones-toolbox-beta-v4r2/ploopy-headphones-toolbox_${finalAttrs.version}_amd64.deb"; + hash = "sha256-r+ybcD6koSIJ/6cck3RNXmf758sRnhS1Y4kaYCNbveA="; + }; + + nativeBuildInputs = [ + dpkg + autoPatchelfHook + ]; + + buildInputs = [ + webkitgtk + ]; + + installPhase = '' + runHook preInstall + + mkdir -p $out/bin + mv usr/bin $out + mv usr/lib $out + mv usr/share $out + + runHook postInstall + ''; + + meta = with lib; { + description = "A UI for configuring Ploopy Headphones"; + homepage = "https://github.com/george-norton/headphones-toolbox"; + maintainers = with maintainers; [ knarkzel nyanbinary ]; + license = licenses.gpl3Only; + sourceProvenance = with sourceTypes; [ binaryNativeCode ]; + platforms = [ "x86_64-linux" ]; + mainProgram = "headphones-toolbox"; + }; +})