1 { lib, stdenv, fetchFromGitHub
2 , dbus, cmake, pkg-config, bash-completion
3 , gsl, popt, clightd, systemd, libconfig, libmodule
4 , withGeoclue ? true, geoclue2
5 , withUpower ? true, upower }:
7 stdenv.mkDerivation rec {
11 src = fetchFromGitHub {
15 sha256 = "sha256-Fu38HRP83Yn2jsq9xnCWOXNlV/0hJKD1/cOOp3EV45Q=";
34 ] ++ lib.optional withGeoclue geoclue2
35 ++ lib.optional withUpower upower;
38 "-DSESSION_BUS_DIR=${placeholder "out"}/share/dbus-1/services"
39 "-DBASH_COMPLETIONS_DIR=${placeholder "out"}/share/bash-completions/completions"
40 "-DZSH_COMPLETIONS_DIR=${placeholder "out"}/share/zsh/site-functions"
44 description = "C daemon that turns your webcam into a light sensor";
45 homepage = "https://github.com/FedeDP/Clight";
46 platforms = platforms.linux;
47 license = licenses.gpl3;
48 maintainers = with maintainers; [
51 mainProgram = "clight";