nixpkgs/pkgs/development/tools/misc/autogen/default.nix

33 lines
982 B
Nix
Raw Normal View History

2015-08-12 17:01:29 -07:00
{ stdenv, fetchurl, which, pkgconfig, perl, guile, libxml2 }:
stdenv.mkDerivation rec {
name = "autogen-${version}";
version = "5.18.6";
2015-08-12 17:01:29 -07:00
src = fetchurl {
url = "mirror://gnu/autogen/rel${version}/autogen-${version}.tar.xz";
sha256 = "0sfmmy19k9z0j3f738fyk6ljf6b66410cvd5zzyplxi2683j10qs";
2015-08-12 17:01:29 -07:00
};
nativeBuildInputs = [ which pkgconfig perl ];
buildInputs = [ guile libxml2 ];
postPatch = ''
# Fix a broken sed expression used for detecting the minor
# version of guile we are using
sed -i "s,sed '.*-I.*',sed 's/\\\(^\\\| \\\)-I/\\\1/g',g" configure
substituteInPlace pkg/libopts/mklibsrc.sh --replace /tmp $TMPDIR
2015-08-12 17:01:29 -07:00
'';
#doCheck = true; # 2 tests fail because of missing /dev/tty
meta = with stdenv.lib; {
description = "Automated text and program generation tool";
license = with licenses; [ gpl3Plus lgpl3Plus ];
homepage = http://www.gnu.org/software/autogen/;
platforms = platforms.all;
maintainers = [ ];
};
}