mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 07:53:19 +00:00
7cd2802749
Fixes #255798
29 lines
654 B
Nix
29 lines
654 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";
|
|
homepage = "https://len.falken.directory/backlight-auto.html";
|
|
license = licenses.mit;
|
|
maintainers = [ maintainers.lf- ];
|
|
platforms = platforms.linux;
|
|
};
|
|
})
|