2023-10-09 19:29:22 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, dpkg
|
|
|
|
, fetchurl
|
|
|
|
, autoPatchelfHook
|
|
|
|
, webkitgtk
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
|
|
name = "headphones-toolbox";
|
2023-10-19 13:55:26 +00:00
|
|
|
version = "0.0.5";
|
2023-10-09 19:29:22 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2023-10-19 13:55:26 +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-10-09 19:29:22 +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-19 13:55:26 +00:00
|
|
|
homepage = "https://github.com/ploopyco/headphones-toolbox/";
|
2023-10-09 19:29:22 +00:00
|
|
|
maintainers = with maintainers; [ knarkzel nyanbinary ];
|
|
|
|
license = licenses.gpl3Only;
|
|
|
|
sourceProvenance = with sourceTypes; [ binaryNativeCode ];
|
|
|
|
platforms = [ "x86_64-linux" ];
|
|
|
|
mainProgram = "headphones-toolbox";
|
|
|
|
};
|
|
|
|
})
|