forked from mirrors/nixpkgs
7201a275db
svn path=/nixpkgs/trunk/; revision=26060
56 lines
1.7 KiB
Nix
56 lines
1.7 KiB
Nix
{ fetchurl, stdenv, guile, which }:
|
|
|
|
let version = "5.11.6"; in
|
|
|
|
stdenv.mkDerivation {
|
|
name = "autogen-${version}";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://gnu/autogen/rel${version}/autogen-${version}.tar.gz";
|
|
sha256 = "013xy0f3hv1cw62nwh4r1x46zs9sndydaz31kd6889dp5p0snfkw";
|
|
};
|
|
|
|
buildInputs = [ guile which ];
|
|
|
|
patchPhase =
|
|
'' for i in $(find -name \*.in)
|
|
do
|
|
sed -i "$i" -e's|/usr/bin/||g'
|
|
done
|
|
'';
|
|
|
|
# The tests rely on being able to find `libopts.a'.
|
|
configureFlags = "--enable-static";
|
|
|
|
doCheck = true;
|
|
|
|
meta = {
|
|
description = "GNU AutoGen, an automated text and program generation tool";
|
|
|
|
longDescription = ''
|
|
AutoGen is a tool designed to simplify the creation and maintenance
|
|
of programs that contain large amounts of repetitious text. It is
|
|
especially valuable in programs that have several blocks of text that
|
|
must be kept synchronized.
|
|
|
|
AutoGen can now accept XML files as definition input, in addition to
|
|
CGI data (for producing dynamic HTML) and traditional AutoGen
|
|
definitions.
|
|
|
|
A common example where this would be useful is in creating and
|
|
maintaining the code required for processing program options.
|
|
Processing options requires multiple constructs to be maintained in
|
|
parallel in different places in your program. Options maintenance
|
|
needs to be done countless times. So, AutoGen comes with an add-on
|
|
package named AutoOpts that simplifies the maintenance and
|
|
documentation of program options.
|
|
'';
|
|
|
|
license = "GPLv3+";
|
|
|
|
homepage = http://www.gnu.org/software/autogen/;
|
|
|
|
maintainers = [ stdenv.lib.maintainers.ludo ];
|
|
};
|
|
}
|