2017-07-15 18:57:16 +02:00
|
|
|
with import <stockholm/lib>;
|
2017-07-17 22:48:32 +02:00
|
|
|
host@{ name,
|
|
|
|
override ? {},
|
|
|
|
secure ? false,
|
|
|
|
full ? false,
|
|
|
|
torrent ? false,
|
2017-12-26 23:20:56 +01:00
|
|
|
hw ? false,
|
|
|
|
musnix ? false,
|
|
|
|
python ? false
|
2017-07-17 22:48:32 +02:00
|
|
|
}:
|
|
|
|
let
|
2017-07-15 18:57:16 +02:00
|
|
|
builder = if getEnv "dummy_secrets" == "true"
|
|
|
|
then "buildbot"
|
2017-07-15 19:01:02 +02:00
|
|
|
else "makefu";
|
|
|
|
_file = <stockholm> + "/makefu/1systems/${name}/source.nix";
|
2018-02-14 01:35:06 +01:00
|
|
|
# TODO: automate updating of this ref + cherry-picks
|
|
|
|
ref = "51810e0"; # nixos-17.09 @ 2018-02-14
|
2017-11-14 10:15:11 +01:00
|
|
|
# + do_sqlite3 ruby: 55a952be5b5
|
2018-01-05 21:38:48 +01:00
|
|
|
# + signal: 0f19beef3
|
2017-07-15 19:01:02 +02:00
|
|
|
|
2017-07-15 18:57:16 +02:00
|
|
|
in
|
|
|
|
evalSource (toString _file) [
|
|
|
|
{
|
2017-07-15 19:01:02 +02: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 {
|
|
|
|
# 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 18:57:16 +02:00
|
|
|
secrets.file = getAttr builder {
|
2017-07-15 19:01:02 +02:00
|
|
|
buildbot = toString <stockholm/makefu/6tests/data/secrets>;
|
|
|
|
makefu = "/home/makefu/secrets/${name}";
|
2017-07-15 18:57:16 +02:00
|
|
|
};
|
2017-07-16 15:16:45 +02:00
|
|
|
|
2017-07-15 18:57:16 +02:00
|
|
|
stockholm.file = toString <stockholm>;
|
|
|
|
}
|
2017-07-17 22:48:32 +02:00
|
|
|
(mkIf ( musnix ) {
|
|
|
|
musnix.git = {
|
|
|
|
url = https://github.com/musnix/musnix.git;
|
|
|
|
ref = "d8b989f";
|
|
|
|
};
|
|
|
|
})
|
2017-12-26 23:20:56 +01:00
|
|
|
|
|
|
|
(mkIf ( hw ) {
|
|
|
|
nixos-hardware.git = {
|
2017-12-28 15:10:22 +01:00
|
|
|
url = https://github.com/nixos/nixos-hardware.git;
|
|
|
|
ref = "8a05dc9";
|
2017-12-26 23:20:56 +01:00
|
|
|
};
|
|
|
|
})
|
|
|
|
|
|
|
|
(mkIf ( python ) {
|
|
|
|
python.git = {
|
|
|
|
url = https://github.com/garbas/nixpkgs-python;
|
|
|
|
ref = "cac319b";
|
|
|
|
};
|
|
|
|
})
|
2017-07-16 15:16:45 +02:00
|
|
|
(mkIf ( torrent ) {
|
|
|
|
torrent-secrets.file = getAttr builder {
|
|
|
|
buildbot = toString <stockholm/makefu/6tests/data/secrets>;
|
|
|
|
makefu = "/home/makefu/secrets/torrent" ;
|
|
|
|
};
|
2017-07-15 18:57:16 +02:00
|
|
|
})
|
|
|
|
override
|
|
|
|
]
|