nixpkgs/pkgs/by-name/ba/backlight-auto/package.nix
stuebinm ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
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.
2024-03-19 03:14:51 +01:00

30 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;
};
})