2011-09-16 12:32:37 +02: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 15:47:48 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
let
|
2011-09-16 12:32:37 +02: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 15:47:48 +01:00
|
|
|
in
|
|
|
|
|
2011-07-04 16:44:54 +02:00
|
|
|
stdenv.mkDerivation {
|
2011-01-14 15:47:48 +01:00
|
|
|
name = "hydra-${version}";
|
2011-07-04 16:44:54 +02:00
|
|
|
|
2011-01-14 15:47:48 +01:00
|
|
|
src = fetchurl {
|
2011-07-04 16:44:54 +02:00
|
|
|
url = http://hydra.nixos.org/build/1142240/download/2/hydra-0.1pre27592.tar.gz;
|
|
|
|
sha256 = "0197bcfkabqqv7611fh9kjabfm0nfci8kanfaa59hqwf3h6fmpwz";
|
2011-01-14 15:47:48 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
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 = ''
|
2011-03-08 16:01:18 +01:00
|
|
|
for i in "$out/bin/"*; do
|
2011-01-14 15:47:48 +01: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 16:01:18 +01:00
|
|
|
'';
|
2011-01-14 15:50:13 +01:00
|
|
|
|
|
|
|
meta = {
|
2011-03-08 16:01:18 +01:00
|
|
|
description = "Hydra, the Nix-based continuous integration system";
|
|
|
|
homepage = http://nixos.org/hydra/;
|
|
|
|
license = "GPLv3+";
|
2011-01-14 15:50:13 +01:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2011-03-08 16:01:18 +01:00
|
|
|
};
|
2011-01-14 15:47:48 +01:00
|
|
|
}
|