nixpkgs/pkgs/by-name/he/headphones-toolbox/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

48 lines
1.0 KiB
Nix
Raw Normal View History

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