autogen: Split into multiple outputs
In particular, this avoids runtime-depending on guile.
This commit is contained in:
parent
09637ac363
commit
0da9c49303
@ -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; {
|
||||
|
Loading…
Reference in New Issue
Block a user