mockgen: fix tests
This commit is contained in:
parent
c552713c8a
commit
fece5997c0
1 changed files with 8 additions and 3 deletions
|
@ -1,19 +1,24 @@
|
||||||
{ buildGoModule, lib, fetchFromGitHub }:
|
{ buildGoModule, fetchFromGitHub, lib }:
|
||||||
|
|
||||||
buildGoModule rec {
|
buildGoModule rec {
|
||||||
pname = "mockgen";
|
pname = "mockgen";
|
||||||
version = "1.6.0";
|
version = "1.6.0";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "golang";
|
owner = "golang";
|
||||||
repo = "mock";
|
repo = "mock";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "sha256-5Kp7oTmd8kqUN+rzm9cLqp9nb3jZdQyltGGQDiRSWcE=";
|
sha256 = "sha256-5Kp7oTmd8kqUN+rzm9cLqp9nb3jZdQyltGGQDiRSWcE=";
|
||||||
};
|
};
|
||||||
|
|
||||||
vendorSha256 = "sha256-5gkrn+OxbNN8J1lbgbxM8jACtKA7t07sbfJ7gVJWpJM=";
|
vendorSha256 = "sha256-5gkrn+OxbNN8J1lbgbxM8jACtKA7t07sbfJ7gVJWpJM=";
|
||||||
|
|
||||||
doCheck = false;
|
|
||||||
|
|
||||||
subPackages = [ "mockgen" ];
|
subPackages = [ "mockgen" ];
|
||||||
|
|
||||||
|
preCheck = ''
|
||||||
|
export GOROOT="$(go env GOROOT)"
|
||||||
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "GoMock is a mocking framework for the Go programming language";
|
description = "GoMock is a mocking framework for the Go programming language";
|
||||||
homepage = "https://github.com/golang/mock";
|
homepage = "https://github.com/golang/mock";
|
||||||
|
|
Loading…
Reference in a new issue