16 # last version that can be built by tinycc-musl 0.9.27
20 url = "mirror://gnu/diffutils/diffutils-${version}.tar.xz";
21 hash = "sha256-pr3X0bMSZtEcT03mwbdI1GB6sCMa9RiPwlM9CuJDj+w=";
24 bash.runCommand "${pname}-${version}" {
25 inherit pname version;
37 passthru.tests.get-version = result:
38 bash.runCommand "${pname}-get-version-${version}" {} ''
39 ${result}/bin/diff --version
44 description = "Commands for showing the differences between files (diff, cmp, etc.)";
45 homepage = "https://www.gnu.org/software/diffutils/diffutils.html";
46 license = licenses.gpl3Only;
47 maintainers = teams.minimal-bootstrap.members;
48 platforms = platforms.unix;
52 cp ${src} diffutils.tar.xz
56 cd diffutils-${version}
59 export CC="tcc -B ${tinycc.libs}/lib"
63 --build=${buildPlatform.config} \
64 --host=${hostPlatform.config}
67 make -j $NIX_BUILD_CORES AR="tcc -ar"
70 make -j $NIX_BUILD_CORES install