release.nix: Get rid of the "system" argument

This commit is contained in:
Eelco Dolstra 2013-07-01 19:37:14 +02:00
parent fe030331b5
commit 663b6a747b

View file

@ -2,7 +2,13 @@
, officialRelease ? false
}:
rec {
let
pkgs = import <nixpkgs> {};
genAttrs' = pkgs.lib.genAttrs [ "x86_64-linux" "i686-linux" ];
in rec {
tarball =
with import <nixpkgs> { };
@ -40,12 +46,9 @@ rec {
};
build =
{ system ? "x86_64-linux" }:
build = genAttrs' (system:
let pkgs = import <nixpkgs> {inherit system;}; in
with pkgs;
with import <nixpkgs> { inherit system; };
let
@ -133,20 +136,13 @@ rec {
LOGNAME = "foo";
meta.description = "Build of Hydra on ${system}";
};
});
tests =
{ nixos ? ../nixos, system ? "x86_64-linux" }:
let hydra = build { inherit system; }; in
tests.install = genAttrs' (system:
with import <nixos/lib/testing.nix> { inherit system; };
{
install = simpleTest {
let hydra = builtins.getAttr system build; in # build.${system}
simpleTest {
machine =
{ config, pkgs, ... }:
{ services.postgresql.enable = true;
@ -169,10 +165,6 @@ rec {
$machine->mustSucceed("HYDRA_DATA=/var/lib/hydra HYDRA_DBI='dbi:Pg:dbname=hydra;user=hydra;' hydra-server >&2 &");
$machine->waitForOpenPort("3000");
'';
};
};
});
}