Unverified Commit 15474993 authored by Aaron Andersen's avatar Aaron Andersen Committed by GitHub
Browse files

brightnessctl: add udev rules to package (#390488)

parents 3d701857 58754dc0
Loading
Loading
Loading
Loading
+10 −1
Original line number Diff line number Diff line
@@ -4,6 +4,7 @@
  fetchFromGitHub,
  pkg-config,
  systemd,
  coreutils,
}:

stdenv.mkDerivation rec {
@@ -19,7 +20,10 @@ stdenv.mkDerivation rec {

  postPatch = ''
    substituteInPlace Makefile \
      --replace "pkg-config" "$PKG_CONFIG"
      --replace-fail "pkg-config" "$PKG_CONFIG"

    substituteInPlace 90-brightnessctl.rules \
      --replace-fail /bin/ ${coreutils}/bin/
  '';

  makeFlags = [
@@ -28,6 +32,11 @@ stdenv.mkDerivation rec {
    "ENABLE_SYSTEMD=1"
  ];

  installTargets = [
    "install"
    "install_udev_rules"
  ];

  nativeBuildInputs = [ pkg-config ];
  buildInputs = [ systemd ];