diff options
author | Sergey Makarov <setser200018@gmail.com> | 2019-02-22 22:45:16 +0300 |
---|---|---|
committer | Sergey Makarov <setser200018@gmail.com> | 2019-02-24 00:09:11 +0300 |
commit | 4cae259fceeb2728925ed01eab76302d1f68a0e2 (patch) | |
tree | d4286b543380b012d1f18182c0d03f4b65d3b3e1 /pkgs/misc/acpilight | |
parent | b4d914c7bc17d4a378e51f4ea2cbde08dfe5e024 (diff) | |
download | nixpkgs-4cae259fceeb2728925ed01eab76302d1f68a0e2.tar nixpkgs-4cae259fceeb2728925ed01eab76302d1f68a0e2.tar.gz nixpkgs-4cae259fceeb2728925ed01eab76302d1f68a0e2.tar.bz2 nixpkgs-4cae259fceeb2728925ed01eab76302d1f68a0e2.tar.lz nixpkgs-4cae259fceeb2728925ed01eab76302d1f68a0e2.tar.xz nixpkgs-4cae259fceeb2728925ed01eab76302d1f68a0e2.tar.zst nixpkgs-4cae259fceeb2728925ed01eab76302d1f68a0e2.zip |
acpilight: init at 1.1
Use pname instead of manual adding version to package name
Diffstat (limited to 'pkgs/misc/acpilight')
-rw-r--r-- | pkgs/misc/acpilight/default.nix | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/pkgs/misc/acpilight/default.nix b/pkgs/misc/acpilight/default.nix new file mode 100644 index 00000000000..20efe634285 --- /dev/null +++ b/pkgs/misc/acpilight/default.nix @@ -0,0 +1,32 @@ +{ stdenv, fetchgit, python36, udev, coreutils }: + +stdenv.mkDerivation rec { + pname = "acpilight"; + version = "1.1"; + + src = fetchgit { + url = "https://gitlab.com/wavexx/acpilight.git"; + rev = "v${version}"; + sha256 = "0kykrl71fb146vaq8207c3qp03h2djkn8hn6psryykk8gdzkv3xd"; + }; + + pyenv = python36.withPackages (pythonPackages: with pythonPackages; [ + ConfigArgParse + ]); + + postConfigure = '' + substituteInPlace 90-backlight.rules --replace /bin ${coreutils}/bin + ''; + + buildInputs = [ pyenv udev ]; + + makeFlags = [ "DESTDIR=$(out) prefix=" ]; + + meta = with stdenv.lib; { + homepage = "https://gitlab.com/wavexx/acpilight"; + description = "ACPI backlight control"; + license = licenses.gpl3; + maintainers = with maintainers; [ "smakarov" ]; + platforms = platforms.linux; + }; +} |