* Nix expression for building Hydra.
[?]
Nov 28, 2008, 4:13 PM
T4LLYESZ2HUXSLKZ6GNBLVWUVG7R5IDFHYHYO773QIZ6QTOOXR2ACDependencies
- [2]
AFTXA575* $HYDRA_DATA environment variable. - [3]
ERNOO5ZZ* Reorganising. - [4]
TULPZ62Y* Perform builds in parallel. - [5]
B72GLND4 - [6]
NREF6YOA* Don't start more builds concurrently than allowed for each system - [7]
N22GPKYT* Put info about logs / build products in the DB. - [8]
X27GNHDV* Basic job info in the database. - [9]
7YBYT2LQ - [10]
JK2QWPH6 - [11]
US27ZTX5* HydraFrontend -> Hydra. - [12]
PKPWUHUX* Idem. - [13]
WHAFVCEI - [*]
CLXEECMF* Start putting build results in a database.
Change contents
- file addition: release.nix[15.2]
letjobs = rec {tarball ={ hydraSrc ? {path = ./.; rev = 1234;}, nixpkgs ? {path = ../nixpkgs;}, officialRelease ? false}:with import nixpkgs.path {};releaseTools.makeSourceTarball {name = "hydra-tarball";src = hydraSrc;inherit officialRelease;# Since we don't have a `make dist', just tar everything.distPhase = ''releaseName=hydra-0.1$VERSION_SUFFIX;ensureDir $out/tarballsmkdir ../$releaseNamecp -prd . ../$releaseNamecd ..tar cfj $out/tarballs/$releaseName.tar.bz2 $releaseNametar cfz $out/tarballs/$releaseName.tar.gz $releaseName'';};build ={ tarball ? {path = jobs.tarball {};}, nixpkgs ? {path = ../nixpkgs;}, system ? "i686-linux"}:with import nixpkgs.path {inherit system;};stdenvNew.mkDerivation {name = "hydra-build";buildInputs = [perl makeWrapperperlCatalystDevelperlCatalystPluginAuthenticationStoreDBICperlCatalystPluginSessionStoreFastMmapperlCatalystPluginStackTraceperlCatalystPluginAuthenticationStoreDBIxClassperlCatalystViewTT];preUnpack = ''src=$(ls ${tarball.path}/tarballs/*.tar.bz2)''; # */installPhase = ''ensureDir $out/libexeccp -prd src/Hydra $out/libexec/hydramv $out/libexec/hydra/script $out/binfor i in $out/bin/*; dowrapProgram $i \--prefix PERL5LIB ':' $out/libexec/hydra/lib:$PERL5LIB \--prefix PATH ':' $out/bin \--set HYDRA_HOME $out/libexec/hydradone''; # */};};in jobs - file move: hydra_build.pl → hydra_build.pl
- replacement in src/Hydra/script/hydra_build.pl at line 1
#! @perl@ -w#! /var/run/current-system/sw/bin/perl -w - file move: hydra_queue_runner.pl → hydra_queue_runner.pl
- replacement in src/Hydra/script/hydra_queue_runner.pl at line 1
#! @perl@ -w#! /var/run/current-system/sw/bin/perl -w - replacement in src/Hydra/script/hydra_queue_runner.pl at line 103
exec("perl", "-I$hydraHome/lib", "-w", "$ENV{'HYDRA_HOME'}/programs/Build.pl", $id);exec("hydra_build.pl", $id); - file move: hydra_scheduler.pl → hydra_scheduler.pl
- replacement in src/Hydra/script/hydra_scheduler.pl at line 1
#! @perl@ -w#! /var/run/current-system/sw/bin/perl -w