ff1a94e523
The nixpkgs-unstable channel's programs.sqlite was used to identify packages producing exactly one binary, and these automatically added to their package definitions wherever possible.
29 lines
690 B
Nix
29 lines
690 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 = [ maintainers.lf- ];
|
|
platforms = platforms.linux;
|
|
};
|
|
})
|