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
KNLKTCDMQNYJ2Y4B7PDQ4WLZUSYKU4VV74YDCDJH5OBCYGP7W4VQC
R6O64PAEF3Y5WGC6ZZFU223YAY5PY2FSHIMBHBJG2RHVNK4QHLLAC
7EYLYIJRXMI2GUDVKCF73BI4G2OIL3RPQX42TOKILZCUA4OG6GJQC
RBQEBVT5RL4VVP6Y2V3IIKIX4E7USU5COI3W7Y2Y36VV3QFCTQQQC
RJ5EREYUPTZRLLUFK7OZK5BEPFRRRRPAN4HAQ7WO7L4JIK4REC3QC
FGI75W53UYMOUBFP5HGSE7KVFAEZHIL6RWAY3FQ3HBQNWZYD4DKQC
OEKXEMU2LCH22BQXC3GV7J4GXC7VFXSXAXVFSOTAEXPKEIYFZ4NQC
JUQJHSYJOJG5TGYTT6VRJ22KJBMTF2C2KKN65PW7NUFUHXI3S6XQC
Z45QO5BPM5BGTHXZGDMWPPNVRB5NSH7YWDYYFZJG5HEALU4YPEZQC
VXNVNOK5DNDR4KHTPBZSCOUTY5LYYAC75G5J6Y7B44N4W7QULMNQC
JXLJS4RIPIYRR76KMFVH6CL2JJTFUWZPYL5QOP6QG223R6VUAU6QC
T2JRI5RR45UVDHM5JDYPNZHHTH72CU5XQLASHKX44SAHDTS6BODAC
NAXUITFLCNQZTB3OMXGGJZ2UYJSZFQJCJ2RYSULEJLEQ23OSVVGAC
UGA45FNCYAHX77QI3MTMSRF676N2BUW2ZUUI4OZCI2C3EJOYKY3QC
6K5PBUUN4GQAMOVX5BS6YYMHJ3PIF2PPZBTIEQ4R7BQNHC23GS3AC
UMEQXUUHFYSGKRXFQV6BOB3YGZACJHFBJ3ULSCXVRRRNV7ZUQW2AC
L7RW467ZBDYCV332DAVH5PBVTCVQXNJXACVNZJTU5Y5H6P62X52QC
#! /usr/bin/env bash
s=$(type -p nix-shell)
exec $s release.nix -A build.x86_64-linux --exclude tarball --command "
export NIX_REMOTE=daemon
export NIX_PATH='$NIX_PATH'
export NIX_BUILD_SHELL=$(type -p bash)
exec $s release.nix -A tarball" "$@"
if test "$(XSLTPROC)" != ""; then \
$(XSLTPROC) $(xsltproc_opts) --nonet --xinclude \
--output manual.html \
$(docbookxsl)/html/docbook.xsl manual.xml; \
else \
echo "Please install xsltproc and rerun configure."; \
exit 1; \
fi
$(XSLTPROC) $(xsltproc_opts) --nonet --xinclude \
--output manual.html \
$(docbookxsl)/xhtml/docbook.xsl manual.xml
manual.pdf: $(DOCBOOK_FILES)
if test "$(DBLATEX)" != ""; then \
$(DBLATEX) $(dblatex_opts) manual.xml; \
else \
echo "Please install dblatex and rerun configure."; \
exit 1; \
fi
if cp $(docbookxsl)/images/callouts/*.gif images/callouts; then \
chmod +wx images images/callouts; \
else \
echo "Please install Docbook XSL and try again."; \
exit 1; \
fi
cp $(docbookxsl)/images/callouts/*.gif images/callouts
chmod +wx images images/callouts
tarball =
with pkgs;
releaseTools.makeSourceTarball {
name = "hydra-tarball";
src = if lib.inNixShell then null else hydraSrc;
inherit officialRelease;
version = builtins.readFile ./version;
buildInputs =
[ perl libxslt nukeReferences pkgconfig nixUnstable git openssl ];
versionSuffix = if officialRelease then "" else "pre${toString hydraSrc.revCount}-${hydraSrc.gitTag}";
preHook = ''
# TeX needs a writable font cache.
export VARTEXFONTS=$TMPDIR/texfonts
addToSearchPath PATH $(pwd)/src/script
addToSearchPath PATH $(pwd)/src/hydra-eval-jobs
addToSearchPath PATH $(pwd)/src/hydra-queue-runner
addToSearchPath PERL5LIB $(pwd)/src/lib
'';
postUnpack = ''
# Clean up when building from a working tree.
if [ -z "$IN_NIX_SHELL" ]; then
(cd $sourceRoot && (git ls-files -o --directory | xargs -r rm -rfv)) || true
fi
'';
configureFlags =
[ "--with-docbook-xsl=${docbook_xsl}/xml/xsl/docbook" ];
postDist = ''
make -C doc/manual install prefix="$out"
echo "doc manual $out/share/doc/hydra manual.html" >> \
"$out/nix-support/hydra-build-products"
'';
};
[ makeWrapper libtool unzip nukeReferences pkgconfig sqlite libpqxx
gitAndTools.topGit mercurial darcs subversion bazaar openssl bzip2
[ makeWrapper autoconf automake libtool unzip nukeReferences pkgconfig sqlite libpqxx
gitAndTools.topGit mercurial darcs subversion bazaar openssl bzip2 libxslt
postUnpack = ''
# Clean up when building from a working tree.
if [ -z "$IN_NIX_SHELL" ]; then
(cd $sourceRoot && (git ls-files -o --directory | xargs -r rm -rfv)) || true
fi
'';
configureFlags = [ "--with-docbook-xsl=${docbook_xsl}/xml/xsl/docbook" ];
preConfigure = "autoreconf -vfi";
enableParallelBuilding = true;
(import ./release.nix {}).build.x86_64-linux