@@ -0,0 +1,41 @@
1+{ stdenv, fetchurl }:
2+
3+let
4+ version = "4.1";
5+in
6+stdenv.mkDerivation {
7+ name = "gnumake-${version}";
8+
9+ src = fetchurl {
10+ url = "mirror://gnu/make/make-${version}.tar.bz2";
11+ sha256 = "19gwwhik3wdwn0r42b7xcihkbxvjl9r2bdal8nifc3k5i4rn3iqb";
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+ meta = {
23+ homepage = http://www.gnu.org/software/make/;
24+ description = "A tool to control the generation of non-source files from sources";
25+ license = stdenv.lib.licenses.gpl3Plus;
26+
27+ longDescription = ''
28+ Make is a tool which controls the generation of executables and
29+ other non-source files of a program from the program's source files.
30+
31+ Make gets its knowledge of how to build your program from a file
32+ called the makefile, which lists each of the non-source files and
33+ how to compute it from other files. When you write a program, you
34+ should write a makefile for it, so that it is possible to use Make
35+ to build and install the program.
36+ '';
37+
38+ maintainers = with stdenv.lib.maintainers; [ ludo simons ];
39+ platforms = stdenv.lib.platforms.all;
40+ };
41+}