2011-09-16 11:32:37 +01:00
|
|
|
{ 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
|
2011-01-14 14:47:48 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
let
|
2011-09-16 11:32:37 +01:00
|
|
|
|
|
|
|
perldeps = with perlPackages;
|
|
|
|
[ CatalystDevel
|
|
|
|
CatalystPluginSessionStoreFastMmap
|
|
|
|
CatalystPluginStackTrace
|
|
|
|
CatalystPluginAuthorizationRoles
|
|
|
|
CatalystAuthenticationStoreDBIxClass
|
|
|
|
CatalystViewTT
|
|
|
|
CatalystEngineHTTPPrefork
|
|
|
|
CatalystViewDownload
|
|
|
|
XMLSimple
|
|
|
|
IPCRun
|
|
|
|
IOCompress
|
|
|
|
Readonly
|
|
|
|
DBDPg
|
|
|
|
EmailSender
|
|
|
|
TextTable
|
|
|
|
NetTwitterLite
|
|
|
|
PadWalker
|
|
|
|
DataDump
|
|
|
|
JSONXS
|
|
|
|
DateTime
|
|
|
|
DigestSHA1
|
|
|
|
CryptRandPasswd
|
|
|
|
nixPerl
|
|
|
|
];
|
|
|
|
|
|
|
|
version = "0.1pre27592";
|
|
|
|
|
2011-01-14 14:47:48 +00:00
|
|
|
in
|
|
|
|
|
2011-07-04 15:44:54 +01:00
|
|
|
stdenv.mkDerivation {
|
2011-01-14 14:47:48 +00:00
|
|
|
name = "hydra-${version}";
|
2011-07-04 15:44:54 +01:00
|
|
|
|
2011-01-14 14:47:48 +00:00
|
|
|
src = fetchurl {
|
2012-03-12 15:31:14 +00:00
|
|
|
url = "http://hydra.nixos.org/build/1264023/download/2/hydra-${version}.tar.gz";
|
|
|
|
sha256 = "62cecc2da9cb0353ab4eb1f66b6783c0195421c35ba6b6eace9d3b56a9275631";
|
2011-01-14 14:47:48 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
configureFlags = "--with-nix=${nix}";
|
|
|
|
|
|
|
|
buildInputs = [ perl makeWrapper libtool nix unzip nukeReferences pkgconfig boehmgc ] ++ perldeps ;
|
|
|
|
|
2012-03-12 15:31:14 +00:00
|
|
|
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
|
|
|
|
]));
|
2011-01-14 14:47:48 +00:00
|
|
|
|
|
|
|
postInstall = ''
|
2011-03-08 15:01:18 +00:00
|
|
|
for i in "$out/bin/"*; do
|
2011-01-14 14:47:48 +00:00
|
|
|
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
|
2011-03-08 15:01:18 +00:00
|
|
|
'';
|
2011-01-14 14:50:13 +00:00
|
|
|
|
|
|
|
meta = {
|
2011-03-08 15:01:18 +00:00
|
|
|
description = "Hydra, the Nix-based continuous integration system";
|
|
|
|
homepage = http://nixos.org/hydra/;
|
|
|
|
license = "GPLv3+";
|
2011-01-14 14:50:13 +00:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2011-03-08 15:01:18 +00:00
|
|
|
};
|
2011-01-14 14:47:48 +00:00
|
|
|
}
|