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
51 lines
1.1 KiB
Nix
51 lines
1.1 KiB
Nix
{
|
|
buildGoModule,
|
|
fetchFromGitHub,
|
|
lib,
|
|
testers,
|
|
mockgen,
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "mockgen";
|
|
version = "0.6.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "uber-go";
|
|
repo = "mock";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-gYUL+ucnKQncudQDcRt8aDqM7xE5XSKHh4X0qFrvfGs=";
|
|
};
|
|
|
|
vendorHash = "sha256-Cf7lKfMuPFT/I1apgChUNNCG2C7SrW7ncF8OusbUs+A=";
|
|
|
|
env.CGO_ENABLED = 0;
|
|
|
|
subPackages = [ "mockgen" ];
|
|
|
|
ldflags = [
|
|
"-X=main.version=${version}"
|
|
"-X=main.date=1970-01-01T00:00:00Z"
|
|
"-X=main.commit=unknown"
|
|
];
|
|
|
|
passthru.tests.version = testers.testVersion {
|
|
package = mockgen;
|
|
command = "mockgen -version";
|
|
version = ''
|
|
v${version}
|
|
Commit: unknown
|
|
Date: 1970-01-01T00:00:00Z
|
|
'';
|
|
};
|
|
|
|
meta = {
|
|
description = "Mocking framework for the Go programming language";
|
|
homepage = "https://github.com/uber-go/mock";
|
|
changelog = "https://github.com/uber-go/mock/blob/v${version}/CHANGELOG.md";
|
|
license = lib.licenses.asl20;
|
|
maintainers = with lib.maintainers; [ bouk ];
|
|
mainProgram = "mockgen";
|
|
};
|
|
}
|