2023-09-21 04:58:21 +00:00
|
|
|
{ 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";
|
2024-03-19 02:14:51 +00:00
|
|
|
mainProgram = "backlight-auto";
|
2023-09-21 04:58:21 +00:00
|
|
|
homepage = "https://len.falken.directory/backlight-auto.html";
|
|
|
|
license = licenses.mit;
|
2024-07-01 21:11:14 +00:00
|
|
|
maintainers = [ ];
|
2023-09-21 04:58:21 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
})
|