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

46 lines
1.4 KiB
Nix
Raw Normal View History

2015-08-13 00:01:29 +00:00
{ stdenv, fetchurl, which, pkgconfig, perl, guile, libxml2 }:
stdenv.mkDerivation rec {
name = "autogen-${version}";
2017-03-19 19:41:19 +00:00
version = "5.18.12";
2015-08-13 00:01:29 +00:00
src = fetchurl {
2017-03-19 19:41:19 +00:00
url = "mirror://gnu/autogen/rel${version}/autogen-${version}.tar.xz";
sha256 = "1n5zq4872sakvz9c7ncsdcfp0z8rsybsxvbmhkpbd19ii0pacfxy";
2015-08-13 00:01:29 +00:00
};
outputs = [ "bin" "dev" "lib" "out" "man" "info" ];
2015-08-13 00:01:29 +00: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-13 00:01:29 +00:00
'';
postInstall = ''
mkdir -p $dev/bin
mv $bin/bin/autoopts-config $dev/bin
for f in $lib/lib/autogen/tpl-config.tlib $out/share/autogen/tpl-config.tlib; do
sed -e "s|$dev/include|/no-such-autogen-include-path|" -i $f
sed -e "s|$bin/bin|/no-such-autogen-bin-path|" -i $f
sed -e "s|$lib/lib|/no-such-autogen-lib-path|" -i $f
done
'';
2015-08-13 00:01:29 +00: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 = [ ];
};
}