diff --git a/pkgs/tools/filesystems/genromfs/default.nix b/pkgs/tools/filesystems/genromfs/default.nix index 6c40c4ad94cd..ce611736b77e 100644 --- a/pkgs/tools/filesystems/genromfs/default.nix +++ b/pkgs/tools/filesystems/genromfs/default.nix @@ -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"; };