genromfs: fix cross compilation

This commit is contained in:
Nick Cao
2024-04-27 12:09:13 -04:00
parent 195cf807be
commit 018a2c201b
+4 -5
View File
@@ -9,11 +9,10 @@ stdenv.mkDerivation rec {
sha256 = "0q6rpq7cmclmb4ayfyknvzbqysxs4fy8aiahlax1sb2p6k3pzwrh";
};
postPatch = ''
substituteInPlace Makefile \
--replace "prefix = /usr" "prefix = $out" \
--replace "gcc" "cc"
'';
makeFlags = [
"prefix:=$(out)"
"CC:=$(CC)"
];
meta = with lib; {
homepage = "https://romfs.sourceforge.net/";