16 pname = "bootstrap-coreutils-musl";
20 url = "mirror://gnu/coreutils/coreutils-${version}.tar.gz";
21 hash = "sha256-X2ANkJOXOwr+JTk9m8GMRPIjJlf0yg2V6jHHAutmtzk=";
25 "--prefix=${placeholder "out"}"
26 "--build=${buildPlatform.config}"
27 "--host=${hostPlatform.config}"
28 # musl 1.1.x doesn't use 64bit time_t
30 # libstdbuf.so fails in static builds
31 "--enable-no-install-program=stdbuf"
34 bash.runCommand "${pname}-${version}"
36 inherit pname version;
48 passthru.tests.get-version =
50 bash.runCommand "${pname}-get-version-${version}" { } ''
51 ${result}/bin/cat --version
56 description = "GNU Core Utilities";
57 homepage = "https://www.gnu.org/software/coreutils";
58 license = licenses.gpl3Plus;
59 maintainers = teams.minimal-bootstrap.members;
60 platforms = platforms.unix;
66 cd coreutils-${version}
69 export CC="tcc -B ${tinycc.libs}/lib"
71 bash ./configure ${lib.concatStringsSep " " configureFlags}
74 make -j $NIX_BUILD_CORES AR="tcc -ar" MAKEINFO="true"
77 make -j $NIX_BUILD_CORES install MAKEINFO="true"