···1-{stdenv, fetchurl}:
2-3-let version = "4.0"; in
4-stdenv.mkDerivation {
5- name = "gnumake-${version}";
6-7- src = fetchurl {
8- url = "mirror://gnu/make/make-${version}.tar.bz2";
9- sha256 = "1nyvn8mknw0mf7727lprva3lisl1y0n03lvar342rrpdmz3qc1p6";
10- };
11-12- /* On Darwin, there are 3 test failures that haven't been investigated
13- yet. */
14- doCheck = !stdenv.isDarwin && !stdenv.isFreeBSD;
15-16- patches =
17- [
18- # Purity: don't look for library dependencies (of the form
19- # `-lfoo') in /lib and /usr/lib. It's a stupid feature anyway.
20- # Likewise, when searching for included Makefiles, don't look in
21- # /usr/include and friends.
22- ./impure-dirs.patch
23-24- # a bunch of patches from Gentoo, mostly should be from upstream (unreleased)
25- ./darwin-library_search-dylib.patch
26- ];
27- patchFlags = "-p0";
28-29- meta = {
30- description = "GNU Make, a program controlling the generation of non-source files from sources";
31-32- longDescription =
33- '' Make is a tool which controls the generation of executables and
34- other non-source files of a program from the program's source files.
35-36- Make gets its knowledge of how to build your program from a file
37- called the makefile, which lists each of the non-source files and
38- how to compute it from other files. When you write a program, you
39- should write a makefile for it, so that it is possible to use Make
40- to build and install the program.
41- '';
42-43- homepage = http://www.gnu.org/software/make/;
44-45- license = stdenv.lib.licenses.gpl3Plus;
46- maintainers = [ ];
47- platforms = stdenv.lib.platforms.all;
48- };
49-}