nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 39 lines 921 B view raw
1{ 2 lib, 3 buildGoModule, 4 fetchFromCodeberg, 5 nix-update-script, 6}: 7 8buildGoModule rec { 9 pname = "go-errorlint"; 10 version = "1.9.0"; 11 12 src = fetchFromCodeberg { 13 owner = "polyfloyd"; 14 repo = "go-errorlint"; 15 rev = "v${version}"; 16 hash = "sha256-79hbXvLnlry2j1mmeHoEx1PRIRd0iRbzN6BDnUyFV+4="; 17 }; 18 19 vendorHash = "sha256-U/19X5iY7IHOHkbTADT4ueCJBPh/ryI4PCfg8ZbMLzU="; 20 21 ldflags = [ 22 "-s" 23 "-w" 24 ]; 25 26 passthru.updateScript = nix-update-script { }; 27 28 meta = { 29 description = "Source code linter that can be used to find code that will cause problems with Go's error wrapping scheme"; 30 homepage = "https://codeberg.org/polyfloyd/go-errorlint"; 31 changelog = "https://codeberg.org/polyfloyd/go-errorlint/src/tag/${src.rev}/CHANGELOG.md"; 32 license = lib.licenses.mit; 33 maintainers = with lib.maintainers; [ 34 meain 35 polyfloyd 36 ]; 37 mainProgram = "go-errorlint"; 38 }; 39}