···1+{ stdenv, fetchurl }:
2+3+let
4+ version = "4.2";
5+in
6+stdenv.mkDerivation {
7+ name = "gnumake-${version}";
8+9+ src = fetchurl {
10+ url = "mirror://gnu/make/make-${version}.tar.bz2";
11+ sha256 = "0pv5rvz5pp4njxiz3syf786d2xp4j7gzddwjvgw5zmz55yvf6p2f";
12+ };
13+14+ patchFlags = "-p0";
15+ patches = [
16+ # Purity: don't look for library dependencies (of the form `-lfoo') in /lib
17+ # and /usr/lib. It's a stupid feature anyway. Likewise, when searching for
18+ # included Makefiles, don't look in /usr/include and friends.
19+ ./impure-dirs.patch
20+ ];
21+22+ outputs = [ "out" "doc" ];
23+24+ meta = {
25+ homepage = http://www.gnu.org/software/make/;
26+ description = "A tool to control the generation of non-source files from sources";
27+ license = stdenv.lib.licenses.gpl3Plus;
28+29+ longDescription = ''
30+ Make is a tool which controls the generation of executables and
31+ other non-source files of a program from the program's source files.
32+33+ Make gets its knowledge of how to build your program from a file
34+ called the makefile, which lists each of the non-source files and
35+ how to compute it from other files. When you write a program, you
36+ should write a makefile for it, so that it is possible to use Make
37+ to build and install the program.
38+ '';
39+40+ platforms = stdenv.lib.platforms.all;
41+ };
42+}