Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
50 lines
1021 B
Nix
50 lines
1021 B
Nix
{
|
|
lib,
|
|
buildGoModule,
|
|
fetchFromGitHub,
|
|
testers,
|
|
}:
|
|
|
|
buildGoModule (finalAttrs: {
|
|
pname = "gh-ost";
|
|
version = "1.1.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "github";
|
|
repo = "gh-ost";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-TTc69dWasqMVwwJNo+M9seMKEWgerZ2ZR7dwDfM1gWI=";
|
|
};
|
|
|
|
vendorHash = null;
|
|
|
|
ldflags = [
|
|
"-s"
|
|
"-w"
|
|
"-X main.AppVersion=${finalAttrs.version}"
|
|
];
|
|
|
|
checkFlags =
|
|
let
|
|
# Skip tests that require docker daemon
|
|
skippedTests = [
|
|
"TestApplier"
|
|
"TestEventsStreamer"
|
|
"TestMigrator"
|
|
];
|
|
in
|
|
[ "-skip=^${builtins.concatStringsSep "$|^" skippedTests}$" ];
|
|
|
|
passthru.tests.version = testers.testVersion {
|
|
package = finalAttrs.finalPackage;
|
|
};
|
|
|
|
meta = {
|
|
description = "Triggerless online schema migration solution for MySQL";
|
|
homepage = "https://github.com/github/gh-ost";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ aaronjheng ];
|
|
mainProgram = "gh-ost";
|
|
};
|
|
})
|