lol

mockgen: change upstream to uber-go fork

+32 -9
+2
nixos/doc/manual/release-notes/rl-2405.section.md
··· 128 128 `globalRedirect` can now have redirect codes other than 301 through 129 129 `redirectCode`. 130 130 131 + - The source of the `mockgen` package has changed to the [go.uber.org/mock](https://github.com/uber-go/mock) fork because [the original repository is no longer maintained](https://github.com/golang/mock#gomock). 132 + 131 133 - [](#opt-boot.kernel.sysctl._net.core.wmem_max_) changed from a string to an integer because of the addition of a custom merge option (taking the highest value defined to avoid conflicts between 2 services trying to set that value), just as [](#opt-boot.kernel.sysctl._net.core.rmem_max_) since 22.11. 132 134 133 135 - `services.zfs.zed.enableMail` now uses the global `sendmail` wrapper defined by an email module
+30 -9
pkgs/development/tools/mockgen/default.nix
··· 1 - { buildGoModule, fetchFromGitHub, lib }: 1 + { buildGoModule 2 + , fetchFromGitHub 3 + , lib 4 + , testers 5 + , mockgen 6 + }: 2 7 3 8 buildGoModule rec { 4 9 pname = "mockgen"; 5 - version = "1.6.0"; 10 + version = "0.4.0"; 6 11 7 12 src = fetchFromGitHub { 8 - owner = "golang"; 13 + owner = "uber-go"; 9 14 repo = "mock"; 10 15 rev = "v${version}"; 11 - sha256 = "sha256-5Kp7oTmd8kqUN+rzm9cLqp9nb3jZdQyltGGQDiRSWcE="; 16 + sha256 = "sha256-3nt70xrZisK5vgQa+STZPiY4F9ITKw8PbBWcKoBn4Vc="; 12 17 }; 13 18 14 - vendorHash = "sha256-5gkrn+OxbNN8J1lbgbxM8jACtKA7t07sbfJ7gVJWpJM="; 19 + vendorHash = "sha256-mcNVud2jzvlPPQEaar/eYZkP71V2Civz+R5v10+tewA="; 20 + 21 + CGO_ENABLED = 0; 15 22 16 23 subPackages = [ "mockgen" ]; 17 24 18 - preCheck = '' 19 - export GOROOT="$(go env GOROOT)" 20 - ''; 25 + ldflags = [ 26 + "-X=main.version=${version}" 27 + "-X=main.date=1970-01-01T00:00:00Z" 28 + "-X=main.commit=unknown" 29 + ]; 30 + 31 + passthru.tests.version = testers.testVersion { 32 + package = mockgen; 33 + command = "mockgen -version"; 34 + version = '' 35 + v${version} 36 + Commit: unknown 37 + Date: 1970-01-01T00:00:00Z 38 + ''; 39 + }; 21 40 22 41 meta = with lib; { 23 42 description = "GoMock is a mocking framework for the Go programming language"; 24 - homepage = "https://github.com/golang/mock"; 43 + homepage = "https://github.com/uber-go/mock"; 44 + changelog = "https://github.com/uber-go/mock/blob/v${version}/CHANGELOG.md"; 25 45 license = licenses.asl20; 26 46 maintainers = with maintainers; [ bouk ]; 47 + mainProgram = "mockgen"; 27 48 }; 28 49 }