2020-07-18 16:06:22 +00:00
|
|
|
{ fetchFromGitHub, nixStable, callPackage, nixFlakes, nixosTests }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
{
|
|
|
|
# Package for phase-1 of the db migration for Hydra.
|
|
|
|
# https://github.com/NixOS/hydra/pull/711
|
|
|
|
hydra-migration = callPackage ./common.nix {
|
|
|
|
version = "2020-02-10";
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "NixOS";
|
|
|
|
repo = "hydra";
|
|
|
|
rev = "add4f610ce6f206fb44702b5a894d877b3a30e3a";
|
|
|
|
sha256 = "1d8hdgjx2ys0zmixi2ydmimdq7ml20h1ji4amwawcyw59kssh6l3";
|
|
|
|
};
|
|
|
|
nix = nixStable;
|
|
|
|
migration = true;
|
|
|
|
|
|
|
|
tests = {
|
|
|
|
db-migration = nixosTests.hydra-db-migration.mig;
|
|
|
|
basic = nixosTests.hydra.hydra-migration;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
# Hydra from latest master branch. Contains breaking changes,
|
|
|
|
# so when having an older version, `pkgs.hydra-migration` should be deployed first.
|
|
|
|
|
|
|
|
hydra-unstable = callPackage ./common.nix {
|
2020-09-25 04:45:31 +00:00
|
|
|
version = "2020-09-02";
|
2020-04-24 23:36:52 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "NixOS";
|
|
|
|
repo = "hydra";
|
2020-09-25 04:45:31 +00:00
|
|
|
rev = "e707990e2d6afab203c7ef1d769d49c564eff151";
|
|
|
|
sha256 = "0iilf953f6s58szzyd1hzc9b2b2yw8lhbsb8xrb08szpfz7ifwqa";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
nix = nixFlakes;
|
2020-06-18 07:06:33 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
tests = {
|
|
|
|
db-migration = nixosTests.hydra-db-migration.mig;
|
|
|
|
basic = nixosTests.hydra.hydra-unstable;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|