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