5e7c2d6cef
GitOrigin-RevId: f99e5f03cc0aa231ab5950a15ed02afec45ed51a
47 lines
1 KiB
Nix
47 lines
1 KiB
Nix
{ lib
|
|
, stdenv
|
|
, dpkg
|
|
, fetchurl
|
|
, autoPatchelfHook
|
|
, webkitgtk
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
name = "headphones-toolbox";
|
|
version = "0.0.4";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/george-norton/headphones-toolbox/releases/download/headphones-toolbox-beta-v5/ploopy-headphones-toolbox_${finalAttrs.version}_amd64.deb";
|
|
hash = "sha256-47F/bTi7ctIbfRnYVbksYUsHmL+3KYWccNg5dKPGR/U=";
|
|
};
|
|
|
|
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";
|
|
};
|
|
})
|