lol
at 16.09-beta 46 lines 1.6 kB view raw
1{ stdenv, fetchurl }: 2 3stdenv.mkDerivation rec { 4 name = "gnum4-1.4.17"; 5 6 src = fetchurl { 7 url = "mirror://gnu/m4/m4-1.4.17.tar.bz2"; 8 sha256 = "0w0da1chh12mczxa5lnwzjk9czi3dq6gnnndbpa6w4rj76b1yklf"; 9 }; 10 11 doCheck = false; 12 13 configureFlags = "--with-syscmd-shell=${stdenv.shell}"; 14 15 # Upstream is aware of it; it may be in the next release. 16 patches = [ ./s_isdir.patch ]; 17 18 # FIXME needs gcc 4.9 in bootstrap tools 19 hardeningDisable = [ "stackprotector" ]; 20 21 meta = { 22 homepage = http://www.gnu.org/software/m4/; 23 description = "GNU M4, a macro processor"; 24 25 longDescription = '' 26 GNU M4 is an implementation of the traditional Unix macro 27 processor. It is mostly SVR4 compatible although it has some 28 extensions (for example, handling more than 9 positional 29 parameters to macros). GNU M4 also has built-in functions for 30 including files, running shell commands, doing arithmetic, etc. 31 32 GNU M4 is a macro processor in the sense that it copies its 33 input to the output expanding macros as it goes. Macros are 34 either builtin or user-defined and can take any number of 35 arguments. Besides just doing macro expansion, m4 has builtin 36 functions for including named files, running UNIX commands, 37 doing integer arithmetic, manipulating text in various ways, 38 recursion etc... m4 can be used either as a front-end to a 39 compiler or as a macro processor in its own right. 40 ''; 41 42 license = stdenv.lib.licenses.gpl3Plus; 43 platforms = stdenv.lib.platforms.unix; 44 }; 45 46}