cramfsprogs: support cross-compilation

This commit is contained in:
Rick van Schijndel 2021-09-05 10:56:49 +02:00
parent c32fa3f108
commit b85d91762a

View File

@ -16,6 +16,10 @@ stdenv.mkDerivation rec {
# So patch the "missing include" bug ourselves.
patches = [ ./include-sysmacros.patch ];
makeFlags = [
"CC=${stdenv.cc.targetPrefix}cc"
];
installPhase = ''
install --target $out/bin -D cramfsck mkcramfs
'';