libudev-zero: fix cross compilation

libudev-zero's `Makefile` sets `AR=ar`; we must override this when
cross compiling.  With this commit,
`pkgsCross.aarch64-multiplatform.libudev-zero` builds.
This commit is contained in:
Adam Joseph
2023-05-15 09:31:57 +00:00
committed by Alyssa Ross
parent a0ca431141
commit 8b72abdbe8
@@ -11,7 +11,7 @@ stdenv.mkDerivation rec {
sha256 = "sha256-SU1pPmLLeTWZe5ybhmDplFw6O/vpEjFAKgfKDl0RS4U=";
};
makeFlags = [ "PREFIX=$(out)" ];
makeFlags = [ "PREFIX=$(out)" "AR=${stdenv.cc.targetPrefix}ar" ];
# Just let the installPhase build stuff, because there's no
# non-install target that builds everything anyway.