16 pname = "gnumake-musl";
20 url = "mirror://gnu/make/make-${version}.tar.gz";
21 hash = "sha256-3Rb7HWe/q3mnL16DkHNcSePo5wtJRaFasfgd23hlj7M=";
25 # Replaces /bin/sh with sh, see patch file for reasoning
26 ./0001-No-impure-bin-sh.patch
27 # Purity: don't look for library dependencies (of the form `-lfoo') in /lib
28 # and /usr/lib. It's a stupid feature anyway. Likewise, when searching for
29 # included Makefiles, don't look in /usr/include and friends.
30 ./0002-remove-impure-dirs.patch
33 bash.runCommand "${pname}-${version}" {
34 inherit pname version;
47 passthru.tests.get-version = result:
48 bash.runCommand "${pname}-get-version-${version}" {} ''
49 ${result}/bin/make --version
54 description = "Tool to control the generation of non-source files from sources";
55 homepage = "https://www.gnu.org/software/make";
56 license = licenses.gpl3Plus;
57 maintainers = teams.minimal-bootstrap.members;
59 platforms = platforms.unix;
67 ${lib.concatMapStringsSep "\n" (f: "patch -Np1 -i ${f}") patches}
70 export CC="tcc -B ${tinycc.libs}/lib"
74 --build=${buildPlatform.config} \
75 --host=${hostPlatform.config}