2021-01-23 12:26:19 +00:00
|
|
|
{ lib, stdenv, fetchurl }:
|
2008-10-07 17:34:00 +00:00
|
|
|
|
2020-06-26 20:44:45 +00:00
|
|
|
# Note: this package is used for bootstrapping fetchurl, and thus
|
|
|
|
# cannot use fetchpatch! All mutable patches (generated by GitHub or
|
|
|
|
# cgit) that are needed here should be included directly in Nixpkgs as
|
|
|
|
# files.
|
|
|
|
|
2021-06-20 10:34:30 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "gnum4";
|
2021-08-30 00:06:51 +00:00
|
|
|
version = "1.4.19";
|
2009-01-16 10:59:27 +00:00
|
|
|
|
2006-10-12 15:43:01 +00:00
|
|
|
src = fetchurl {
|
2021-06-20 10:34:30 +00:00
|
|
|
url = "mirror://gnu/m4/m4-${version}.tar.bz2";
|
2021-08-30 00:06:51 +00:00
|
|
|
sha256 = "sha256-swapHA/ZO8QoDPwumMt6s5gf91oYe+oyk4EfRSyJqMg=";
|
2008-10-07 17:34:00 +00:00
|
|
|
};
|
|
|
|
|
2016-04-25 16:48:47 +00:00
|
|
|
doCheck = false;
|
2008-10-08 08:47:20 +00:00
|
|
|
|
2018-07-25 21:44:21 +00:00
|
|
|
configureFlags = [ "--with-syscmd-shell=${stdenv.shell}" ];
|
2015-07-31 02:13:08 +00:00
|
|
|
|
2008-10-07 17:34:00 +00:00
|
|
|
meta = {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://www.gnu.org/software/m4/";
|
2008-10-08 08:47:20 +00:00
|
|
|
description = "GNU M4, a macro processor";
|
|
|
|
|
|
|
|
longDescription = ''
|
|
|
|
GNU M4 is an implementation of the traditional Unix macro
|
|
|
|
processor. It is mostly SVR4 compatible although it has some
|
|
|
|
extensions (for example, handling more than 9 positional
|
|
|
|
parameters to macros). GNU M4 also has built-in functions for
|
|
|
|
including files, running shell commands, doing arithmetic, etc.
|
|
|
|
|
|
|
|
GNU M4 is a macro processor in the sense that it copies its
|
|
|
|
input to the output expanding macros as it goes. Macros are
|
|
|
|
either builtin or user-defined and can take any number of
|
|
|
|
arguments. Besides just doing macro expansion, m4 has builtin
|
|
|
|
functions for including named files, running UNIX commands,
|
|
|
|
doing integer arithmetic, manipulating text in various ways,
|
|
|
|
recursion etc... m4 can be used either as a front-end to a
|
|
|
|
compiler or as a macro processor in its own right.
|
|
|
|
'';
|
|
|
|
|
2021-01-23 12:26:19 +00:00
|
|
|
license = lib.licenses.gpl3Plus;
|
|
|
|
platforms = lib.platforms.unix ++ lib.platforms.windows;
|
2006-10-12 15:43:01 +00:00
|
|
|
};
|
2008-10-08 08:47:20 +00:00
|
|
|
|
2006-10-12 15:43:01 +00:00
|
|
|
}
|