Simplify running nix-shell
[?]
Mar 22, 2016, 11:53 AM
X7IAG7JTV4W6JH34JBC6KOVUGBAG643V4Y5MX4GTJL2BV5PP5VIQCDependencies
- [2]
GLHKDGJ4hydra: revert 24180 - [3]
WKBYU46GFix typo in makefile. - [4]
DHRHJS5XFix stupid change - [5]
V4OIX3FINumber the sections - [6]
SPGPFOT4Add the actual file - [7]
DUUF3XJFDon't mess with $LOGNAME in nix-shell - [8]
NVMDS7GEAdd README.md - [9]
IS22DF36Handle building from a dirty Git tree - [10]
24BMQDZAStart of single-process hydra-queue-runner - [11]
WBU4ZFBRDon't copy src for nix-shell - [12]
RA2MH3CJUpdate $PATH - [13]
ZGGUQ3CGUse nixUnstable for the tarball - [14]
ZYS73YNTForce bash usage in dev-shell. Should fix #236 - [15]
Z5OWQ4KZCheck Nix version - [16]
XCHBOA3Ssvn -> subversion - [17]
HPIJ35SG - [18]
CLXEECMF* Start putting build results in a database. - [19]
MIC2O6ZFUse evalFile() instead of parseExprFromFile() - [20]
RJ5EREYUhydra: add bazaar to path - [21]
4VYY2ADPAllow the machines file to specify host public keys - [22]
YQWH4POV* Simplify. - [23]
SAFVRDTK* Put Hydra's dependencies so that they can easily be installed in a - [24]
6K5PBUUNUse buildEnv to combine Hydra's Perl dependencies - [25]
UMEQXUUHhydra: fix name of build jobset - [26]
FVMVRIRRdoc: Ship Docbook's callout images. - [27]
E63Q3L3JBuild from source remark in README.md - [28]
QK2OXCKPhydra/release.nix: move manual to tarball build, restore version in store path for tarball build - [29]
LOHWNXEJCleanup - [30]
FJAF7KWADisable building the PDF manual - [31]
PD4VHG3Kdoc: Use a CSS and callout images for the HTML output. - [32]
6U6KBFYPBuild the HTML manual; add the HTML & PDF to the distribution; install them. - [33]
3PNG7NIBRemove trailing whitespace - [34]
6XSBP2VGWhitespace - [35]
Z45QO5BPhydra/release.nix: posthook -> postdist - [36]
IZYR3KTLrelease.nix: Get rid of the "system" argument - [37]
XWNMTW6PDrop building on i686-linux - [38]
6CZHII3QUse <...> syntax - [39]
WQ2VQ7H3Use hydra-module.nix in the tests - [40]
OEKXEMU2hydra: Change the `tarball' job to use `--with-nix'. - [41]
67QM2R5CDepend on Term::Size::Any - [42]
UHMUHQMUhydra: fix tarball build, add pre suffix to tarballs - [43]
RBQEBVT5Doh - [44]
U2BNO3C5hydra: fix build job - [45]
X5QBLQDG - [46]
7EYLYIJRFor nix-shell, set some more variables in preHook - [47]
DWQCLOPQTweaks for nix-shell - [48]
BY2UJCXLnix-prefetch-* scripts are in hydra svn now - [49]
6A6CZ7SCdraft manual - [50]
JXLJS4RIrelease.nix: Make the HTML manual a Hydra build product. - [51]
M3A5PZIHhydra: Clarify the dependency on BDW-GC. - [52]
WYM574OIadd nix to buildinputs - [53]
G2ZB6464first test, not yet in buildprocess - [54]
VOPKXPFEAdd OpenSSL as a dependency because Nix needs it - [55]
KNLKTCDMUse pkgconfig to find Nix - [56]
NAXUITFLhydra/release.nix: use new location for manual.pdf - [57]
VXNVNOK5release.nix: Install the manual under the right prefix. - [58]
DN3VAAP4hydra: remove HYDRA_HOME env var, not used - [59]
XDKFASXTAdd bzip2 to buildInputs. - [60]
Y2BFYLLK* Install the SQL schemata in $out/share/hydra/sql. - [61]
SFMN6AFQ* Include a license. - [62]
HJECG75OhydrA: add some pkgs to buildinputs for tests - [63]
X27GNHDV* Basic job info in the database. - [64]
NRNR4QVJUse stable Nix - [65]
VM3TQZ65* hydra: make manual.pdf - [66]
FV2M6MOThydra: use autoconf/-make - [67]
C7CXMZ66hydra: do not perform git clone every time. in stead work on local clone and pull - [68]
6NWLMLSSremove nix from buildinputs - [69]
T4LLYESZ* Nix expression for building Hydra. - [70]
L7RW467ZAdd a test for darcs inputs. - [71]
D3MDJONY - [72]
WSCHBYENadd topgit to hydra's path - [73]
NDJ6PZB7* Fix symbol to look for. - [74]
T2JRI5RRSecond attempt to get Hydra to see style.css & co. - [75]
ZL4LHHZFRemove empty files - [76]
KN3VYE5P* Cleaned up the foreign key constraints. - [77]
FGI75W53move nix-prefetch-* into tarball - [78]
GBCPEGYCAdd a .gitignore - [79]
ZGBU7H7P* Pass nixUnstable to the tarball build. - [80]
V2ALOFRRFix the test - [81]
4C5F6SZVadd openssl to deps - [82]
WJTP6VZIFix building against the latest Nix - [83]
UGA45FNCAdd a plugin for backing up builds in s3 - [84]
F6IBTEIBDisable the S3 backup test - [85]
JUQJHSYJrelease.nix: Add `--with-docbook-xsl' to the configure flags for `tarball'. - [86]
U6MQV7QLSpecify all of $(htmldir) as the doc. - [87]
R6O64PAEUse a nicer version string - [88]
FSZJXAHRadd sqlite to buildinputs
Change contents
- file deletion: dev-shell
#! /usr/bin/env bashs=$(type -p nix-shell)exec $s release.nix -A build.x86_64-linux --exclude tarball --command "export NIX_REMOTE=daemonexport NIX_PATH='$NIX_PATH'export NIX_BUILD_SHELL=$(type -p bash)exec $s release.nix -A tarball" "$@" - replacement in README.md at line 3
$ ./dev-shell$ nix-shell - edit in configure.ac at line 15
dnl Optional dependencies to build the manual, normally not neededdnl since the tarball comes with the PDF and HTML manuals.AC_PATH_PROG([DBLATEX], [dblatex]) - edit in doc/manual/Makefile.am at line 12
dblatex_opts = \-V \-P doc.collab.show=0 \-P latex.output.revhistory=0 - edit in doc/manual/Makefile.am at line 14
#dist_pdf_DATA = manual.pdf - replacement in doc/manual/Makefile.am at line 19[16.530]→[16.530:570](∅→∅),[16.570]→[16.151:243](∅→∅),[16.243]→[16.626:693](∅→∅),[16.626]→[16.626:693](∅→∅),[16.693]→[3.0:57](∅→∅),[3.57]→[16.751:773](∅→∅),[16.751]→[16.751:773](∅→∅)
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 - edit in doc/manual/Makefile.am at line 23[16.774]→[16.0:29](∅→∅),[16.29]→[16.775:811](∅→∅),[16.17159]→[16.775:811](∅→∅),[16.811]→[4.0:50](∅→∅),[4.50]→[16.17245:17340](∅→∅),[16.79]→[16.17245:17340](∅→∅),[16.861]→[16.17245:17340](∅→∅),[16.17245]→[16.17245:17340](∅→∅)
manual.pdf: $(DOCBOOK_FILES)if test "$(DBLATEX)" != ""; then \$(DBLATEX) $(dblatex_opts) manual.xml; \else \echo "Please install dblatex and rerun configure."; \exit 1; \fi - replacement in doc/manual/Makefile.am at line 25
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; \ficp $(docbookxsl)/images/callouts/*.gif images/calloutschmod +wx images images/callouts - replacement in doc/manual/hacking.xml at line 25
$ ./dev-shell$ nix-shell - replacement in release.nix at line 1
{ hydraSrc ? { outPath = ./.; revCount = 1234; gitTag = "abcdef"; }{ hydraSrc ? { outPath = ./.; revCount = 1234; rev = "abcdef"; } - edit in release.nix at line 31
version = builtins.readFile ./version + "." + toString hydraSrc.revCount + "." + hydraSrc.rev; - edit in release.nix at line 38[15.178]→[16.112:113](∅→∅),[16.112]→[16.112:113](∅→∅),[16.1]→[16.729:741](∅→∅),[16.113]→[16.729:741](∅→∅),[16.101]→[16.729:741](∅→∅),[16.741]→[15.179:194](∅→∅),[16.60]→[16.23:24](∅→∅),[16.101]→[16.23:24](∅→∅),[15.194]→[16.23:24](∅→∅),[16.17585]→[16.23:24](∅→∅),[16.23]→[16.23:24](∅→∅),[16.24]→[16.17586:17653](∅→∅),[16.17653]→[11.0:55](∅→∅),[11.55]→[16.17698:17729](∅→∅),[16.17698]→[16.17698:17729](∅→∅),[16.17729]→[16.0:45](∅→∅),[16.45]→[16.74:75](∅→∅),[16.17729]→[16.74:75](∅→∅),[16.75]→[16.40:60](∅→∅),[16.60]→[13.0:75](∅→∅),[16.73]→[16.76:77](∅→∅),[16.74]→[16.76:77](∅→∅),[13.75]→[16.76:77](∅→∅),[16.77]→[16.76:77](∅→∅),[16.81]→[16.76:77](∅→∅),[16.84]→[16.76:77](∅→∅),[16.87]→[16.76:77](∅→∅),[16.96]→[16.76:77](∅→∅),[16.114]→[16.76:77](∅→∅),[16.134]→[16.76:77](∅→∅),[16.146]→[16.76:77](∅→∅),[16.146]→[16.76:77](∅→∅),[16.17782]→[16.76:77](∅→∅),[16.77]→[16.147:257](∅→∅),[16.257]→[16.355:374](∅→∅),[16.374]→[16.101:188](∅→∅),[16.101]→[16.101:188](∅→∅),[16.188]→[16.0:48](∅→∅),[16.48]→[16.70:126](∅→∅),[16.126]→[12.0:59](∅→∅),[12.59]→[16.90:138](∅→∅),[16.126]→[16.90:138](∅→∅),[16.90]→[16.90:138](∅→∅),[16.83]→[16.115:125](∅→∅),[16.138]→[16.115:125](∅→∅),[16.248]→[16.115:125](∅→∅),[16.188]→[16.115:125](∅→∅)
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/texfontsaddToSearchPath PATH $(pwd)/src/scriptaddToSearchPath PATH $(pwd)/src/hydra-eval-jobsaddToSearchPath PATH $(pwd)/src/hydra-queue-runneraddToSearchPath PERL5LIB $(pwd)/src/lib''; - edit in release.nix at line 39[16.1]→[9.0:225](∅→∅),[9.225]→[16.0:23](∅→∅),[16.1]→[16.0:23](∅→∅),[16.23]→[16.147:212](∅→∅),[16.45]→[16.125:126](∅→∅),[16.126]→[16.125:126](∅→∅),[16.212]→[16.125:126](∅→∅),[16.125]→[16.125:126](∅→∅),[16.126]→[16.0:20](∅→∅),[16.20]→[16.0:49](∅→∅),[16.87]→[16.87:88](∅→∅),[16.88]→[16.0:64](∅→∅),[16.269]→[16.269:319](∅→∅),[16.95]→[16.188:198](∅→∅),[16.319]→[16.188:198](∅→∅),[16.336]→[16.188:198](∅→∅),[16.188]→[16.188:198](∅→∅),[16.198]→[16.1540:1548](∅→∅),[16.1540]→[16.1540:1548](∅→∅),[16.1548]→[16.88:89](∅→∅)
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)) || truefi'';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"'';}; - replacement in release.nix at line 105
nix gitnix git boehmgc - replacement in release.nix at line 113
src = tarball;src = if lib.inNixShell then null else hydraSrc; - replacement in release.nix at line 117
[ makeWrapper libtool unzip nukeReferences pkgconfig sqlite libpqxxgitAndTools.topGit mercurial darcs subversion bazaar openssl bzip2[ makeWrapper autoconf automake libtool unzip nukeReferences pkgconfig sqlite libpqxxgitAndTools.topGit mercurial darcs subversion bazaar openssl bzip2 libxslt - edit in release.nix at line 133
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)) || truefi'';configureFlags = [ "--with-docbook-xsl=${docbook_xsl}/xml/xsl/docbook" ];preConfigure = "autoreconf -vfi";enableParallelBuilding = true; - replacement in release.nix at line 158
--set HYDRA_RELEASE ${tarball.version} \--set HYDRA_RELEASE ${version} \ - file addition: shell.nix[16.2]
(import ./release.nix {}).build.x86_64-linux