nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 22.05 41 lines 1.0 kB view raw
1{ lib, stdenv, fetchFromGitHub, libX11, libXScrnSaver, libXext, glib, dbus, pkg-config, systemd }: 2 3stdenv.mkDerivation { 4 pname = "lightum"; 5 version = "unstable-2014-06-07"; 6 7 src = fetchFromGitHub { 8 owner = "poliva"; 9 repo = "lightum"; 10 rev = "123e6babe0669b23d4c1dfa5511088608ff2baa8"; 11 sha256 = "sha256-dzWUVY2srgk6BM6jZ7FF+snxnPopz3fx9nq+mVkmogc="; 12 }; 13 14 buildInputs = [ 15 dbus 16 glib 17 libX11 18 libXScrnSaver 19 libXext 20 pkg-config 21 systemd 22 ]; 23 24 patchPhase = '' 25 substituteInPlace Makefile \ 26 --replace "libsystemd-login" "libsystemd" 27 ''; 28 29 installPhase = '' 30 make install prefix=$out bindir=$out/bin docdir=$out/share/doc \ 31 mandir=$out/share/man INSTALL="install -c" INSTALLDATA="install -c -m 644" 32 ''; 33 34 meta = { 35 description = "MacBook automatic light sensor daemon"; 36 homepage = "https://github.com/poliva/lightum"; 37 license = lib.licenses.gpl2; 38 maintainers = with lib.maintainers; [ puffnfresh ]; 39 platforms = lib.platforms.linux; 40 }; 41}