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:
@@ -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 ];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user