about summary refs log tree commit diff
path: root/pkgs/misc/brightnessctl
diff options
context:
space:
mode:
authorMichael Weiss <dev.primeos@gmail.com>2020-02-10 23:10:53 +0100
committerMichael Weiss <dev.primeos@gmail.com>2020-02-10 23:18:20 +0100
commit5282bc9a748b1dbf2da2a450f522fdbbff192780 (patch)
tree64864cdf1a5e58cf35964d99ed09cff2d1955d9e /pkgs/misc/brightnessctl
parentcf5dd2623bb5518257d0edbb50a84093f08086bb (diff)
downloadnixlib-5282bc9a748b1dbf2da2a450f522fdbbff192780.tar
nixlib-5282bc9a748b1dbf2da2a450f522fdbbff192780.tar.gz
nixlib-5282bc9a748b1dbf2da2a450f522fdbbff192780.tar.bz2
nixlib-5282bc9a748b1dbf2da2a450f522fdbbff192780.tar.lz
nixlib-5282bc9a748b1dbf2da2a450f522fdbbff192780.tar.xz
nixlib-5282bc9a748b1dbf2da2a450f522fdbbff192780.tar.zst
nixlib-5282bc9a748b1dbf2da2a450f522fdbbff192780.zip
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
Diffstat (limited to 'pkgs/misc/brightnessctl')
-rw-r--r--pkgs/misc/brightnessctl/default.nix8
1 files changed, 1 insertions, 7 deletions
diff --git a/pkgs/misc/brightnessctl/default.nix b/pkgs/misc/brightnessctl/default.nix
index 387216e052f9..37956785a5bb 100644
--- a/pkgs/misc/brightnessctl/default.nix
+++ b/pkgs/misc/brightnessctl/default.nix
@@ -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 ];