Merge pull request #251947 from uninsane/pr-cross-brightnessctl

brightnessctl: support cross compilation
This commit is contained in:
Artturi 2023-08-29 01:25:10 +03:00 committed by GitHub
commit 64f29b82d0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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 ];