brightnessctl: support cross compilation

This commit is contained in:
Colin 2023-08-28 10:33:53 +00:00
parent 5690c4271f
commit c7dce3df8c
1 changed files with 5 additions and 0 deletions

View File

@ -11,6 +11,11 @@ stdenv.mkDerivation rec {
sha256 = "0immxc7almmpg80n3bdn834p3nrrz7bspl2syhb04s3lawa5y2lq";
};
postPatch = ''
substituteInPlace Makefile \
--replace "pkg-config" "$PKG_CONFIG"
'';
makeFlags = [ "PREFIX=" "DESTDIR=$(out)" "ENABLE_SYSTEMD=1" ];
nativeBuildInputs = [ pkg-config ];