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