mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 23:13:19 +00:00
Merge pull request #251947 from uninsane/pr-cross-brightnessctl
brightnessctl: support cross compilation
This commit is contained in:
commit
64f29b82d0
@ -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 ];
|
||||
|
Loading…
Reference in New Issue
Block a user