Luke Granger-Brown
57725ef3ec
git-subtree-dir: third_party/nixpkgs git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
29 lines
674 B
Nix
29 lines
674 B
Nix
{ lib, stdenv, zig, libyuv, fetchFromGitHub }:
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "backlight-auto";
|
|
version = "0.0.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "lf94";
|
|
repo = "backlight-auto";
|
|
rev = finalAttrs.version;
|
|
hash = "sha256-QPymwlDrgKM/SXDzJdmfzWLSLU2D7egif1OIUE+SHoI=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
zig.hook
|
|
];
|
|
|
|
buildInputs = [
|
|
libyuv
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Automatically set screen brightness with a webcam";
|
|
mainProgram = "backlight-auto";
|
|
homepage = "https://len.falken.directory/backlight-auto.html";
|
|
license = licenses.mit;
|
|
maintainers = [ ];
|
|
platforms = platforms.linux;
|
|
};
|
|
})
|