1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-15 09:03:48 +00:00
nixpkgs/pkgs/development/tools/misc/autogen/default.nix
Tuomas Tynkkynen a17216af4c treewide: Shuffle outputs
Make either 'bin' or 'out' the first output.
2016-08-29 14:49:51 +03:00

46 lines
1.4 KiB
Nix

{ stdenv, fetchurl, which, pkgconfig, perl, guile, libxml2 }:
stdenv.mkDerivation rec {
name = "autogen-${version}";
version = "5.18.7";
src = fetchurl {
url = "mirror://gnu/autogen/autogen-${version}.tar.xz";
sha256 = "01d4m8ckww12sy50vgyxlnz83z9dxqpyqp153cscncc9w6jq19d7";
};
outputs = [ "bin" "dev" "lib" "out" "man" "info" ];
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
'';
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
'';
#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 = [ ];
};
}