mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-31 17:23:34 +00:00
Merge pull request #256438 from lf-/jade/backlight-auto
backlight-auto: init at 0.0.1
This commit is contained in:
commit
86d24a930d
28
pkgs/by-name/ba/backlight-auto/package.nix
Normal file
28
pkgs/by-name/ba/backlight-auto/package.nix
Normal file
@ -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;
|
||||
};
|
||||
})
|
Loading…
Reference in New Issue
Block a user