{ lib, buildGoModule, fetchFromGitHub }: buildGoModule rec { pname = "go-minimock"; version = "3.3.10"; src = fetchFromGitHub { owner = "gojuno"; repo = "minimock"; rev = "v${version}"; sha256 = "sha256-BGG2gCHpPXRzjg9F/fjTbghHJngYnZAtwajBhgl3zt4="; }; ldflags = [ "-s" "-w" "-X main.version=${version}" ]; vendorHash = "sha256-O1Bp+zuSq3/UULpej4rXxeHcDiNAhECqj9Yh9aGeA0E="; doCheck = true; subPackages = [ "cmd/minimock" "." ]; meta = with lib; { homepage = "https://github.com/gojuno/minimock"; description = "A golang mock generator from interfaces"; license = licenses.mit; maintainers = with maintainers; [ svrana ]; mainProgram = "minimock"; }; }