3
0
Fork 0
forked from mirrors/nixpkgs

add hydra

svn path=/nixpkgs/trunk/; revision=25567
This commit is contained in:
Rob Vermaas 2011-01-14 14:47:48 +00:00
parent 529b17d8c5
commit 046125bd1d
3 changed files with 80 additions and 1 deletions

View file

@ -0,0 +1,64 @@
{stdenv, fetchurl, nix, perlPackages, perl, makeWrapper, libtool,
unzip, nukeReferences, pkgconfig, boehmgc, libxslt, sqlite,
subversion, openssh, coreutils, findutils, gzip, bzip2, lzma,
gnutar, git, mercurial, gnused, graphviz, rpm, dpkg, cdrkit
}:
let
perldeps = with perlPackages; [
CatalystDevel
CatalystPluginSessionStoreFastMmap
CatalystPluginStackTrace
CatalystPluginAuthorizationRoles
CatalystAuthenticationStoreDBIxClass
CatalystViewTT
CatalystEngineHTTPPrefork
CatalystViewDownload
XMLSimple
IPCRun
IOCompressBzip2
Readonly
DBDPg
EmailSender
TextTable
NetTwitterLite
PadWalker
DataDump
JSONXS
DateTime
DigestSHA1
CryptRandPasswd
nixPerl
];
in
stdenv.mkDerivation rec {
name = "hydra-${version}";
version = "0.1pre25566";
src = fetchurl {
url = http://hydra.nixos.org/build/858318/download/1/hydra-0.1pre25566.tar.gz;
sha256 = "6b2dc48d609a69dec117debbd185d71bfb092bc7078f8ca59e29aaf3c9591ca7";
};
configureFlags = "--with-nix=${nix}";
buildInputs = [ perl makeWrapper libtool nix unzip nukeReferences pkgconfig boehmgc ] ++ perldeps ;
hydraPath = stdenv.lib.concatStringsSep ":" (map (p: "${p}/bin") ( [
libxslt sqlite subversion openssh nix coreutils findutils
gzip bzip2 lzma gnutar unzip git mercurial gnused graphviz
rpm dpkg cdrkit]));
postInstall = ''
for i in $out/bin/*; do
wrapProgram $i \
--prefix PERL5LIB ':' $out/libexec/hydra/lib:$PERL5LIB \
--prefix PATH ':' $out/bin:$hydraPath \
--set HYDRA_RELEASE ${version} \
--set HYDRA_HOME $out/libexec/hydra \
--set NIX_RELEASE ${nix.name}
done
''; # */
}

View file

@ -778,6 +778,10 @@ let
httpfs2 = callPackage ../tools/filesystems/httpfs { };
hydra = callPackage ../development/tools/misc/hydra {
nix = nixSqlite ;
};
iasl = callPackage ../development/compilers/iasl { };
idutils = callPackage ../tools/misc/idutils { };

View file

@ -9,7 +9,7 @@
rec {
inherit (pkgs) buildPerlPackage fetchurl stdenv perl;
inherit (pkgs) buildPerlPackage fetchurl stdenv perl fetchsvn;
ack = buildPerlPackage rec {
name = "ack-1.92";
@ -2019,6 +2019,17 @@ rec {
propagatedBuildInputs = [JSONAny Encode LWP CryptSSLeay];
};
nixPerl = buildPerlPackage {
name = "Nix-0.15";
src = fetchsvn {
url = https://svn.nixos.org/repos/nix/nix-perl/trunk;
rev = 24774;
sha256 = "1akj695gpnbrjlnwd1gdnnnk7ppvpp1qsinjn04az7q6hjqzbm6p";
};
NIX_PREFIX = pkgs.nixSqlite;
doCheck = false; # tests currently don't work
};
ObjectSignature = buildPerlPackage {
name = "Object-Signature-1.05";
src = fetchurl {