2020-04-15 21:14:20 +01:00
|
|
|
{ fetchFromGitHub, nixStable, callPackage, nixFlakes, fetchpatch, nixosTests }:
|
2020-03-27 21:09:13 +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;
|
2020-04-15 21:14:20 +01:00
|
|
|
|
|
|
|
tests = {
|
|
|
|
db-migration = nixosTests.hydra-db-migration.mig;
|
|
|
|
basic = nixosTests.hydra.hydra-migration;
|
|
|
|
};
|
2016-06-01 20:02:58 +01:00
|
|
|
};
|
|
|
|
|
2020-04-06 00:13:07 +01:00
|
|
|
# Hydra from latest master branch. Contains breaking changes,
|
2020-03-27 21:09:13 +00:00
|
|
|
# so when having an older version, `pkgs.hydra-migration` should be deployed first.
|
|
|
|
|
|
|
|
hydra-unstable = callPackage ./common.nix {
|
2020-04-16 00:01:08 +01:00
|
|
|
version = "2020-04-16";
|
2020-03-27 21:09:13 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "NixOS";
|
|
|
|
repo = "hydra";
|
2020-04-16 00:01:08 +01:00
|
|
|
rev = "87837f1d82904bf48e11b5641258b6be2f663c3b";
|
|
|
|
sha256 = "1vs3lyfyafsl7wbpmycv7c3n9n2rkrswp65msb6q1iskgpvr96d5";
|
2020-03-27 21:09:13 +00:00
|
|
|
};
|
|
|
|
nix = nixFlakes;
|
2020-04-15 21:14:20 +01:00
|
|
|
tests = {
|
|
|
|
db-migration = nixosTests.hydra-db-migration.mig;
|
|
|
|
basic = nixosTests.hydra.hydra-unstable;
|
|
|
|
};
|
2016-06-01 20:02:58 +01:00
|
|
|
};
|
2018-08-09 21:32:27 +01:00
|
|
|
}
|