nixpkgs/pkgs/by-name/he/headphones-toolbox/package.nix
Fabián Heredia Montiel ccec93c1c7 treewide: replace webkitgtk to webkitgtk_4_0
sed -i 's/ webkitgtk\b/ webkitgtk_4_0/g' pkgs/**.nix
sed -i 's/(webkitgtk\b/(webkitgtk_4_0/g' pkgs/**.nix
sed -i 's/\.webkitgtk\b/.webkitgtk_4_0/g' pkgs/**.nix

webkitgtk is currently pointing to that specific ABI version but the
alias is going to start warning
2024-10-11 17:23:43 -06:00

48 lines
1 KiB
Nix

{ lib
, stdenv
, dpkg
, fetchurl
, autoPatchelfHook
, webkitgtk_4_0
}:
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_4_0
];
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 nyabinary ];
license = licenses.gpl3Only;
sourceProvenance = with sourceTypes; [ binaryNativeCode ];
platforms = [ "x86_64-linux" ];
mainProgram = "headphones-toolbox";
};
})