···1-{ stdenv, fetchurl, texinfo, guileSupport ? false, pkgconfig , guile ? null, autoreconfHook }:
2-3-assert guileSupport -> ( guile != null );
4-5-let
6- version = "4.2.90";
7- revision = "48c8a116a914a325a0497721f5d8b58d5bba34d4";
8- revCount = "2491";
9- shortRev = "48c8a11";
10-11- baseVersion = "4.2.1";
12- baseTarball = fetchurl {
13- url = "mirror://gnu/make/make-${baseVersion}.tar.bz2";
14- sha256 = "12f5zzyq2w56g95nni65hc0g5p7154033y2f3qmjvd016szn5qnn";
15- };
16-in
17-stdenv.mkDerivation {
18- name = "gnumake-${version}pre${revCount}_${shortRev}";
19-20- src = fetchurl {
21- url = "http://git.savannah.gnu.org/cgit/make.git/snapshot/make-${revision}.tar.gz";
22- sha256 = "0k6yvhr2a5lh1qhflv02dyvq5p20ikgaakm8w6gr4xmkspljwpwx";
23- };
24-25- postUnpack = ''
26- unpackFile ${baseTarball}
27- cp make-${baseVersion}/po/*.po $sourceRoot/po
28- cp make-${baseVersion}/doc/{fdl,make-stds}.texi $sourceRoot/doc
29- '';
30-31- patches = [
32- # Purity: don't look for library dependencies (of the form `-lfoo') in /lib
33- # and /usr/lib. It's a stupid feature anyway. Likewise, when searching for
34- # included Makefiles, don't look in /usr/include and friends.
35- ./impure-dirs-head.patch
36- ];
37-38- postPatch = ''
39- # These aren't in the 4.2.1 tarball yet.
40- sed -i -e 's/sr//' -e 's/zh_TW//' po/LINGUAS
41- '';
42-43- nativeBuildInputs = [ autoreconfHook pkgconfig texinfo ];
44- buildInputs = stdenv.lib.optional guileSupport guile;
45-46- configureFlags = stdenv.lib.optional guileSupport "--with-guile";
47-48- outputs = [ "out" "man" "info" ];
49-50- meta = with stdenv.lib; {
51- homepage = http://www.gnu.org/software/make/;
52- description = "A tool to control the generation of non-source files from sources";
53- license = licenses.gpl3Plus;
54-55- longDescription = ''
56- Make is a tool which controls the generation of executables and
57- other non-source files of a program from the program's source files.
58-59- Make gets its knowledge of how to build your program from a file
60- called the makefile, which lists each of the non-source files and
61- how to compute it from other files. When you write a program, you
62- should write a makefile for it, so that it is possible to use Make
63- to build and install the program.
64- '';
65-66- platforms = platforms.all;
67- maintainers = [ maintainers.vrthra ];
68- };
69-}