* Nix expression for building Hydra.

[?]
Nov 28, 2008, 4:13 PM
T4LLYESZ2HUXSLKZ6GNBLVWUVG7R5IDFHYHYO773QIZ6QTOOXR2AC

Dependencies

Change contents

  • file addition: release.nix (----------)
    [15.2]
    let
    jobs = 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/tarballs
    mkdir ../$releaseName
    cp -prd . ../$releaseName
    cd ..
    tar cfj $out/tarballs/$releaseName.tar.bz2 $releaseName
    tar 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 makeWrapper
    perlCatalystDevel
    perlCatalystPluginAuthenticationStoreDBIC
    perlCatalystPluginSessionStoreFastMmap
    perlCatalystPluginStackTrace
    perlCatalystPluginAuthenticationStoreDBIxClass
    perlCatalystViewTT
    ];
    preUnpack = ''
    src=$(ls ${tarball.path}/tarballs/*.tar.bz2)
    ''; # */
    installPhase = ''
    ensureDir $out/libexec
    cp -prd src/Hydra $out/libexec/hydra
    mv $out/libexec/hydra/script $out/bin
    for i in $out/bin/*; do
    wrapProgram $i \
    --prefix PERL5LIB ':' $out/libexec/hydra/lib:$PERL5LIB \
    --prefix PATH ':' $out/bin \
    --set HYDRA_HOME $out/libexec/hydra
    done
    ''; # */
    };
    };
    in jobs
  • file move: hydra_build.pl (----------)hydra_build.pl (---r------)
    [4.1560]
    [4.2912]
  • replacement in src/Hydra/script/hydra_build.pl at line 1
    [4.2912][4.2913:2926]()
    #! @perl@ -w
    [4.2912]
    [4.2926]
    #! /var/run/current-system/sw/bin/perl -w
  • file move: hydra_queue_runner.pl (----------)hydra_queue_runner.pl (---r------)
    [4.1560]
    [4.7823]
  • replacement in src/Hydra/script/hydra_queue_runner.pl at line 1
    [4.7823][4.7824:7837]()
    #! @perl@ -w
    [4.7823]
    [4.7837]
    #! /var/run/current-system/sw/bin/perl -w
  • replacement in src/Hydra/script/hydra_queue_runner.pl at line 103
    [2.1570][2.1570:1675]()
    exec("perl", "-I$hydraHome/lib", "-w", "$ENV{'HYDRA_HOME'}/programs/Build.pl", $id);
    [2.1570]
    [2.1675]
    exec("hydra_build.pl", $id);
  • file move: hydra_scheduler.pl (----------)hydra_scheduler.pl (---r------)
    [4.1560]
    [4.1319]
  • replacement in src/Hydra/script/hydra_scheduler.pl at line 1
    [4.1319][4.1320:1333]()
    #! @perl@ -w
    [4.1319]
    [4.1333]
    #! /var/run/current-system/sw/bin/perl -w