nixpkgs-suyu/pkgs/os-specific/linux/lightum/default.nix
Jonathan Ringer 9bb3fccb5b treewide: pkgs.pkgconfig -> pkgs.pkg-config, move pkgconfig to alias.nix
continuation of #109595

pkgconfig was aliased in 2018, however, it remained in
all-packages.nix due to its wide usage. This cleans
up the remaining references to pkgs.pkgsconfig and
moves the entry to aliases.nix.

python3Packages.pkgconfig remained unchanged because
it's the canonical name of the upstream package
on pypi.
2021-01-19 01:16:25 -08:00

38 lines
989 B
Nix

{ lib, stdenv, fetchgit, libX11, libXScrnSaver, libXext, glib, dbus, pkg-config, systemd }:
stdenv.mkDerivation {
name = "lightum-2014-06-07";
src = fetchgit {
url = "https://github.com/poliva/lightum";
rev = "123e6babe0669b23d4c1dfa5511088608ff2baa8";
sha256 = "01x24rcrkgksyvqpgkr9zafg3jgs8nqng8yf0hx0kbmcimar8dbp";
};
buildInputs = [
dbus
glib
libX11
libXScrnSaver
libXext
pkg-config
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";
license = lib.licenses.gpl2;
maintainers = with lib.maintainers; [ puffnfresh ];
platforms = lib.platforms.linux;
};
}