diff options
Diffstat (limited to 'nixpkgs/pkgs/by-name/ba/backlight-auto/package.nix')
-rw-r--r-- | nixpkgs/pkgs/by-name/ba/backlight-auto/package.nix | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/by-name/ba/backlight-auto/package.nix b/nixpkgs/pkgs/by-name/ba/backlight-auto/package.nix new file mode 100644 index 000000000000..5115ae229673 --- /dev/null +++ b/nixpkgs/pkgs/by-name/ba/backlight-auto/package.nix @@ -0,0 +1,28 @@ +{ 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; + }; +}) |