2022-03-30 09:31:56 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, libX11, libXScrnSaver, libXext, glib, dbus, pkg-config, systemd }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2021-09-26 12:46:18 +00:00
|
|
|
pname = "lightum";
|
|
|
|
version = "unstable-2014-06-07";
|
2022-03-30 09:31:56 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "poliva";
|
|
|
|
repo = "lightum";
|
2020-04-24 23:36:52 +00:00
|
|
|
rev = "123e6babe0669b23d4c1dfa5511088608ff2baa8";
|
2022-03-30 09:31:56 +00:00
|
|
|
sha256 = "sha256-dzWUVY2srgk6BM6jZ7FF+snxnPopz3fx9nq+mVkmogc=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-10-21 18:38:19 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs = [
|
|
|
|
dbus
|
|
|
|
glib
|
|
|
|
libX11
|
|
|
|
libXScrnSaver
|
|
|
|
libXext
|
|
|
|
systemd
|
|
|
|
];
|
|
|
|
|
|
|
|
patchPhase = ''
|
|
|
|
substituteInPlace Makefile \
|
|
|
|
--replace "libsystemd-login" "libsystemd"
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
make install prefix=$out bindir=$out/bin docdir=$out/share/doc \
|
|
|
|
mandir=$out/share/man INSTALL="install -c" INSTALLDATA="install -c -m 644"
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "MacBook automatic light sensor daemon";
|
|
|
|
homepage = "https://github.com/poliva/lightum";
|
2021-02-05 17:12:51 +00:00
|
|
|
license = lib.licenses.gpl2;
|
|
|
|
maintainers = with lib.maintainers; [ puffnfresh ];
|
|
|
|
platforms = lib.platforms.linux;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|