Files
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

69 lines
1.2 KiB
Nix

{
lib,
stdenv,
fetchFromGitHub,
dbus,
cmake,
pkg-config,
bash-completion,
gsl,
popt,
clightd,
systemd,
libconfig,
libmodule,
withGeoclue ? true,
geoclue2,
withUpower ? true,
upower,
}:
stdenv.mkDerivation rec {
pname = "clight";
version = "4.11";
src = fetchFromGitHub {
owner = "FedeDP";
repo = "Clight";
rev = version;
sha256 = "sha256-Fu38HRP83Yn2jsq9xnCWOXNlV/0hJKD1/cOOp3EV45Q=";
};
nativeBuildInputs = [
dbus
cmake
pkg-config
bash-completion
];
buildInputs = [
gsl
popt
upower
clightd
systemd
geoclue2
libconfig
libmodule
]
++ lib.optional withGeoclue geoclue2
++ lib.optional withUpower upower;
cmakeFlags = [
"-DSESSION_BUS_DIR=${placeholder "out"}/share/dbus-1/services"
"-DBASH_COMPLETIONS_DIR=${placeholder "out"}/share/bash-completions/completions"
"-DZSH_COMPLETIONS_DIR=${placeholder "out"}/share/zsh/site-functions"
];
meta = with lib; {
description = "C daemon that turns your webcam into a light sensor";
homepage = "https://github.com/FedeDP/Clight";
platforms = platforms.linux;
license = licenses.gpl3;
maintainers = with maintainers; [
eadwu
];
mainProgram = "clight";
};
}