autogen: Split into multiple outputs

In particular, this avoids runtime-depending on guile.
This commit is contained in:
Tuomas Tynkkynen 2015-08-24 01:29:08 +03:00 committed by Vladimír Čunát
parent 09637ac363
commit 0da9c49303

View File

@ -9,6 +9,8 @@ stdenv.mkDerivation rec {
sha256 = "0sfmmy19k9z0j3f738fyk6ljf6b66410cvd5zzyplxi2683j10qs";
};
outputs = [ "dev" "bin" "lib" "out" "man" "info" ];
nativeBuildInputs = [ which pkgconfig perl ];
buildInputs = [ guile libxml2 ];
@ -20,6 +22,17 @@ stdenv.mkDerivation rec {
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; {