1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-28 08:31:59 +00:00
nixpkgs/pkgs/os-specific/linux/light/default.nix

32 lines
881 B
Nix
Raw Normal View History

2021-01-15 14:45:37 +00:00
{ lib, stdenv, fetchFromGitHub, autoreconfHook, coreutils }:
2014-11-10 02:32:11 +00:00
stdenv.mkDerivation rec {
2020-11-26 10:20:17 +00:00
version = "1.2.2";
pname = "light";
2018-08-07 23:56:39 +01:00
src = fetchFromGitHub {
owner = "haikarainen";
repo = "light";
rev = "v${version}";
2020-11-26 10:20:17 +00:00
sha256 = "1a70zcf88ifsnwll486aicjnh48zisdf8f7vi34ihw61kdadsq9s";
2014-11-10 02:32:11 +00:00
};
2018-08-07 23:56:39 +01:00
configureFlags = [ "--with-udev" ];
2014-11-10 02:32:11 +00:00
nativeBuildInputs = [ autoreconfHook ];
2014-11-10 02:32:11 +00:00
# ensure udev rules can find the commands used
postPatch = ''
substituteInPlace 90-backlight.rules \
--replace '/bin/chgrp' '${coreutils}/bin/chgrp' \
--replace '/bin/chmod' '${coreutils}/bin/chmod'
'';
2014-11-10 02:32:11 +00:00
meta = {
description = "GNU/Linux application to control backlights";
homepage = "https://haikarainen.github.io/light/";
2021-01-15 14:45:37 +00:00
license = lib.licenses.gpl3;
maintainers = with lib.maintainers; [ puffnfresh dtzWill ];
platforms = lib.platforms.linux;
2014-11-10 02:32:11 +00:00
};
}