2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchgit, python3, coreutils }:
|
2019-02-22 19:45:16 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "acpilight";
|
2019-06-24 23:20:26 +01: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 23:20:26 +01:00
|
|
|
sha256 = "1r0r3nx6x6vkpal6vci0zaa1n9dfacypldf6k8fxg7919vzxdn1w";
|
2019-02-22 19:45:16 +00:00
|
|
|
};
|
|
|
|
|
2019-04-01 15:19:13 +01: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 21:10:32 +01:00
|
|
|
substituteInPlace Makefile --replace udevadm true
|
2019-02-22 19:45:16 +00:00
|
|
|
'';
|
|
|
|
|
2019-06-22 21:10:32 +01:00
|
|
|
buildInputs = [ pyenv ];
|
2019-02-22 19:45:16 +00:00
|
|
|
|
|
|
|
makeFlags = [ "DESTDIR=$(out) prefix=" ];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2019-02-22 19:45:16 +00:00
|
|
|
homepage = "https://gitlab.com/wavexx/acpilight";
|
|
|
|
description = "ACPI backlight control";
|
|
|
|
license = licenses.gpl3;
|
2019-08-18 20:16:19 +01:00
|
|
|
maintainers = with maintainers; [ smakarov ];
|
2019-02-22 19:45:16 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|