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