2017-07-15 16:57:16 +00:00
|
|
|
with import <stockholm/lib>;
|
2017-07-17 20:48:32 +00:00
|
|
|
host@{ name,
|
|
|
|
override ? {},
|
|
|
|
secure ? false,
|
|
|
|
full ? false,
|
|
|
|
torrent ? false,
|
|
|
|
musnix ? false
|
|
|
|
}:
|
|
|
|
let
|
2017-07-15 16:57:16 +00:00
|
|
|
builder = if getEnv "dummy_secrets" == "true"
|
|
|
|
then "buildbot"
|
2017-07-15 17:01:02 +00:00
|
|
|
else "makefu";
|
|
|
|
_file = <stockholm> + "/makefu/1systems/${name}/source.nix";
|
2017-07-17 20:48:32 +00:00
|
|
|
ref = "74b40c3"; # unstable @ 2017-07-16 + graceful requests2 (a772c3aa) + libpurple bitlbee
|
2017-07-15 17:01:02 +00:00
|
|
|
|
2017-07-15 16:57:16 +00:00
|
|
|
in
|
|
|
|
evalSource (toString _file) [
|
|
|
|
{
|
2017-07-15 17:01:02 +00:00
|
|
|
nixos-config.symlink = "stockholm/makefu/1systems/${name}/config.nix";
|
|
|
|
# always perform a full populate when buildbot
|
|
|
|
nixpkgs = if full || (builder == "buildbot" ) then {
|
|
|
|
git = {
|
|
|
|
url = https://github.com/makefu/nixpkgs;
|
|
|
|
inherit ref;
|
|
|
|
};
|
|
|
|
} else {
|
|
|
|
# TODO use http, once it is implemented
|
|
|
|
# right now it is simply extracted revision folder
|
|
|
|
|
|
|
|
## prepare so we do not have to wait for rsync:
|
|
|
|
## cd /var/src; curl https://github.com/nixos/nixpkgs/tarball/125ffff -L | tar zx && mv NixOS-nixpkgs-125ffff nixpkgs
|
|
|
|
file = "/home/makefu/store/${ref}";
|
|
|
|
};
|
|
|
|
|
2017-07-15 16:57:16 +00:00
|
|
|
secrets.file = getAttr builder {
|
2017-07-15 17:01:02 +00:00
|
|
|
buildbot = toString <stockholm/makefu/6tests/data/secrets>;
|
|
|
|
makefu = "/home/makefu/secrets/${name}";
|
2017-07-15 16:57:16 +00:00
|
|
|
};
|
2017-07-16 13:16:45 +00:00
|
|
|
|
2017-07-15 16:57:16 +00:00
|
|
|
stockholm.file = toString <stockholm>;
|
|
|
|
}
|
2017-07-17 20:48:32 +00:00
|
|
|
(mkIf ( musnix ) {
|
|
|
|
musnix.git = {
|
|
|
|
url = https://github.com/musnix/musnix.git;
|
|
|
|
ref = "d8b989f";
|
|
|
|
};
|
|
|
|
})
|
2017-07-16 13:16:45 +00:00
|
|
|
(mkIf ( torrent ) {
|
|
|
|
torrent-secrets.file = getAttr builder {
|
|
|
|
buildbot = toString <stockholm/makefu/6tests/data/secrets>;
|
|
|
|
makefu = "/home/makefu/secrets/torrent" ;
|
|
|
|
};
|
2017-07-15 16:57:16 +00:00
|
|
|
})
|
|
|
|
override
|
|
|
|
]
|