nixos/brightnessctl: Remove the module

Due to the support of the systemd-logind API the udev rules aren't
required anymore which renders this module useless [0].
Note: brightnessctl should now require a working D-Bus setup and a valid
local logind session for this to work.

[0]: https://github.com/NixOS/nixpkgs/pull/79663
This commit is contained in:
Michael Weiss
2020-02-10 23:10:53 +01:00
parent cf5dd2623b
commit 5282bc9a74
4 changed files with 7 additions and 39 deletions

View File

@@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, coreutils, pkg-config, systemd }:
{ stdenv, fetchFromGitHub, pkg-config, systemd }:
stdenv.mkDerivation rec {
pname = "brightnessctl";
@@ -13,12 +13,6 @@ stdenv.mkDerivation rec {
makeFlags = [ "PREFIX=" "DESTDIR=$(out)" "ENABLE_SYSTEMD=1" ];
postPatch = ''
substituteInPlace 90-brightnessctl.rules --replace /bin/ ${coreutils}/bin/
# For backward compatibility with the NixOS module / udev approach:
substituteInPlace Makefile --replace "INSTALL_UDEV_RULES=0" "INSTALL_UDEV_RULES=1"
'';
nativeBuildInputs = [ pkg-config ];
buildInputs = [ systemd ];