diff options
author | Knarkzel <85593302+knarkzel@users.noreply.github.com> | 2023-09-11 21:11:39 +0200 |
---|---|---|
committer | Niko <97130632+Nyabinary@users.noreply.github.com> | 2023-09-11 16:08:23 -0400 |
commit | abe6f84302896434c871f868abdd93d02e02acaa (patch) | |
tree | f02003738f34ad2bf27d24957c40dc6bcce2c7f9 | |
parent | 59d6aba0dc9c8553fd2e6f39f4e471513b87d480 (diff) |
headphones-toolbox: init at 0.0.3
-rw-r--r-- | pkgs/by-name/he/headphones-toolbox/package.nix | 47 |
1 files changed, 47 insertions, 0 deletions
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 0000000000000..d0f01961e6b62 --- /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"; + }; +}) |