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
52 lines
1.1 KiB
Nix
52 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
buildGoModule,
|
|
fetchFromGitHub,
|
|
versionCheckHook,
|
|
go-task,
|
|
gotestsum,
|
|
getent,
|
|
}:
|
|
|
|
buildGoModule (finalAttrs: {
|
|
pname = "go-mockery_2";
|
|
# supported upstream until 2029-12-31
|
|
# https://vektra.github.io/mockery/latest/v3/#v2-support-lifecycle
|
|
version = "2.53.5";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "vektra";
|
|
repo = "mockery";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-Q+EiUg606JsTe9XsIVk/mktKF0+tXGNeOuvYk9iB+uY=";
|
|
};
|
|
|
|
proxyVendor = true;
|
|
vendorHash = "sha256-5pMcAuWxKqWzSB+d28hFOP++P0JpqukSO3Z+1Hrwzk4=";
|
|
|
|
ldflags = [
|
|
"-s"
|
|
"-w"
|
|
"-X github.com/vektra/mockery/v${lib.versions.major finalAttrs.version}/pkg/logging.SemVer=v${finalAttrs.version}"
|
|
];
|
|
|
|
env.CGO_ENABLED = false;
|
|
|
|
subPackages = [ "." ];
|
|
|
|
nativeCheckInputs = [
|
|
versionCheckHook
|
|
];
|
|
|
|
meta = {
|
|
homepage = "https://github.com/vektra/mockery";
|
|
description = "Mock code autogenerator for Golang - v2";
|
|
maintainers = with lib.maintainers; [
|
|
fbrs
|
|
jk
|
|
];
|
|
mainProgram = "mockery";
|
|
license = lib.licenses.bsd3;
|
|
};
|
|
})
|