nixpkgs/pkgs/by-name/he/headphones-toolbox/package.nix
Alexis Hildebrandt 755b915a15 treewide: Remove indefinite article from meta.description
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
2024-06-09 23:07:45 +02:00

48 lines
1.0 KiB
Nix

{ lib
, stdenv
, dpkg
, fetchurl
, autoPatchelfHook
, webkitgtk
}:
stdenv.mkDerivation (finalAttrs: {
name = "headphones-toolbox";
version = "0.0.5";
src = fetchurl {
url = "https://github.com/ploopyco/headphones-toolbox/releases/download/app-v${finalAttrs.version}/ploopy-headphones-toolbox_${finalAttrs.version}_amd64.deb";
hash = "sha256-lWjmpybGcL3sbBng8zCTUtwYhlrQ6cCrKkhiu+g9MsE=";
};
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 = "UI for configuring Ploopy Headphones";
homepage = "https://github.com/ploopyco/headphones-toolbox/";
maintainers = with maintainers; [ knarkzel nyanbinary ];
license = licenses.gpl3Only;
sourceProvenance = with sourceTypes; [ binaryNativeCode ];
platforms = [ "x86_64-linux" ];
mainProgram = "headphones-toolbox";
};
})