Merge pull request #307252 from NickCao/genromfs

genromfs: fix cross compilation
This commit is contained in:
Artturi
2024-04-27 19:58:31 +03:00
committed by GitHub
+5 -6
View File
@@ -9,17 +9,16 @@ 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/";
description = "Tool for creating romfs file system images";
license = licenses.gpl2;
maintainers = with maintainers; [ ];
maintainers = with maintainers; [ nickcao ];
platforms = platforms.all;
mainProgram = "genromfs";
};