···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- # Don't segfault if we can't get a tty name.
22- ./no-tty-name.patch
23- ];
24-25- outputs = [ "out" "doc" ];
26-27- meta = {
28- homepage = http://www.gnu.org/software/make/;
29- description = "A tool to control the generation of non-source files from sources";
30- license = stdenv.lib.licenses.gpl3Plus;
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- platforms = stdenv.lib.platforms.all;
44- };
45-}