{ lib , buildGoModule , fetchFromGitHub }: buildGoModule rec { pname = "api-linter"; version = "1.59.0"; src = fetchFromGitHub { owner = "googleapis"; repo = "api-linter"; rev = "v${version}"; hash = "sha256-rT7mN/vW7o7Qj2BUYmwePJtvURYdgvRK7Oi7Rw/RK4A="; }; vendorHash = "sha256-TV0lA0DkQu3e9aq2uX4Ea8vrvDXxM8vgOn7EXGjld9E="; subPackages = [ "cmd/api-linter" ]; ldflags = [ "-s" "-w" ]; # reference: https://github.com/googleapis/api-linter/blob/v1.59.0/.github/workflows/release.yaml#L76 preBuild = '' cat > cmd/api-linter/version.go <