* Put Hydra's dependencies so that they can easily be installed in a

profile for easy testing.
This commit is contained in:
Eelco Dolstra 2009-07-07 11:33:50 +00:00
parent 1da4f89eae
commit 11ebba90db
2 changed files with 25 additions and 18 deletions

19
deps.nix Normal file
View file

@ -0,0 +1,19 @@
{pkgs}:
with pkgs;
[ perlPackages.CatalystDevel
perlPackages.CatalystPluginSessionStoreFastMmap
perlPackages.CatalystPluginStackTrace
perlPackages.CatalystPluginAuthorizationRoles
perlPackages.CatalystAuthenticationStoreDBIxClass
perlPackages.CatalystViewTT
perlPackages.CatalystEngineHTTPPrefork
perlPackages.CatalystViewDownload
perlPackages.XMLSimple
perlPackages.IPCRun
perlPackages.IOCompressBzip2
perlPackages.Readonly
perlPackages.DBDPg
perlPackages.EmailSend
]

View file

@ -54,30 +54,18 @@ let
, system ? "i686-linux" , system ? "i686-linux"
}: }:
with import nixpkgs {inherit system;}; let pkgs = import nixpkgs {inherit system;}; in
with pkgs;
let nix = nixUnstable.override { supportOldDBs = false; }; in let nix = nixUnstable.override { supportOldDBs = false; }; in
stdenv.mkDerivation { stdenv.mkDerivation {
name = "hydra" + (if tarball ? version then "-" + tarball.version else ""); name = "hydra" + (if tarball ? version then "-" + tarball.version else "");
buildInputs = [ buildInputs =
perl makeWrapper [ perl makeWrapper libtool ]
perlPackages.CatalystDevel ++ (import ./deps.nix) { inherit pkgs; };
perlPackages.CatalystPluginSessionStoreFastMmap
perlPackages.CatalystPluginStackTrace
perlPackages.CatalystPluginAuthorizationRoles
perlPackages.CatalystAuthenticationStoreDBIxClass
perlPackages.CatalystViewTT
perlPackages.CatalystEngineHTTPPrefork
perlPackages.CatalystViewDownload
perlPackages.XMLSimple
perlPackages.IPCRun
perlPackages.IOCompressBzip2
perlPackages.Readonly
perlPackages.DBDPg
libtool
];
preUnpack = '' preUnpack = ''
src=$(ls ${tarball}/tarballs/*.tar.bz2) src=$(ls ${tarball}/tarballs/*.tar.bz2)