2019-06-22 20:10:32 +00:00
|
|
|
{ stdenv, fetchgit, python3, coreutils }:
|
2019-02-22 19:45:16 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "acpilight";
|
2019-06-24 22:20:26 +00:00
|
|
|
version = "1.2";
|
2019-02-22 19:45:16 +00:00
|
|
|
|
|
|
|
src = fetchgit {
|
|
|
|
url = "https://gitlab.com/wavexx/acpilight.git";
|
|
|
|
rev = "v${version}";
|
2019-06-24 22:20:26 +00:00
|
|
|
sha256 = "1r0r3nx6x6vkpal6vci0zaa1n9dfacypldf6k8fxg7919vzxdn1w";
|
2019-02-22 19:45:16 +00:00
|
|
|
};
|
|
|
|
|
2019-04-01 14:19:13 +00:00
|
|
|
pyenv = python3.withPackages (pythonPackages: with pythonPackages; [
|
2019-02-22 19:45:16 +00:00
|
|
|
ConfigArgParse
|
|
|
|
]);
|
|
|
|
|
|
|
|
postConfigure = ''
|
|
|
|
substituteInPlace 90-backlight.rules --replace /bin ${coreutils}/bin
|
2019-06-22 20:10:32 +00:00
|
|
|
substituteInPlace Makefile --replace udevadm true
|
2019-02-22 19:45:16 +00:00
|
|
|
'';
|
|
|
|
|
2019-06-22 20:10:32 +00:00
|
|
|
buildInputs = [ pyenv ];
|
2019-02-22 19:45:16 +00:00
|
|
|
|
|
|
|
makeFlags = [ "DESTDIR=$(out) prefix=" ];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = "https://gitlab.com/wavexx/acpilight";
|
|
|
|
description = "ACPI backlight control";
|
|
|
|
license = licenses.gpl3;
|
2019-08-18 19:16:19 +00:00
|
|
|
maintainers = with maintainers; [ smakarov ];
|
2019-02-22 19:45:16 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|