hydra/release.nix: move manual to tarball build, restore version in store path for tarball build

This commit is contained in:
Rob Vermaas 2011-01-14 10:43:47 +00:00
parent ceffcae5e0
commit 3d17802d1c

View file

@ -13,13 +13,20 @@ rec {
name = "hydra-tarball"; name = "hydra-tarball";
src = hydraSrc; src = hydraSrc;
inherit officialRelease; inherit officialRelease;
version = builtins.readFile ./version;
buildInputs = [ perl libxslt dblatex tetex ] ; buildInputs = [ perl libxslt dblatex tetex nukeReferences ] ;
preConfigure = '' preConfigure = ''
# TeX needs a writable font cache. # TeX needs a writable font cache.
export VARTEXFONTS=$TMPDIR/texfonts export VARTEXFONTS=$TMPDIR/texfonts
''; '';
postHook = ''
cp doc/manual/manual.pdf $out
nuke-refs $out/manual.pdf
echo "doc-pdf manual $out/share/doc/hydra/manual/manual.pdf" >> $out/nix-support/hydra-build-products
'';
}; };
build = build =
@ -42,8 +49,7 @@ rec {
hydraPath = stdenv.lib.concatStringsSep ":" (map (p: "${p}/bin") ( [ hydraPath = stdenv.lib.concatStringsSep ":" (map (p: "${p}/bin") ( [
libxslt sqlite subversion openssh nix coreutils findutils libxslt sqlite subversion openssh nix coreutils findutils
gzip bzip2 lzma gnutar unzip git mercurial gzip bzip2 lzma gnutar unzip git mercurial gnused graphviz
gnused graphviz
] ++ ( if stdenv.isLinux then [rpm dpkg cdrkit] else [] ))); ] ++ ( if stdenv.isLinux then [rpm dpkg cdrkit] else [] )));
postInstall = '' postInstall = ''
@ -62,8 +68,6 @@ rec {
--set HYDRA_HOME $out/libexec/hydra \ --set HYDRA_HOME $out/libexec/hydra \
--set NIX_RELEASE ${nix.name} --set NIX_RELEASE ${nix.name}
done done
echo "doc-pdf manual $out/share/doc/hydra/manual/manual.pdf" >> $out/nix-support/hydra-build-products
''; # */ ''; # */
meta = { meta = {