Commit b97e825f authored by Paul Meyer's avatar Paul Meyer
Browse files

athens: 0.16.2 -> 0.17.0

parent 9d8105c6
Loading
Loading
Loading
Loading
+18 −10
Original line number Diff line number Diff line
{
  lib,
  fetchFromGitHub,
  buildGoModule,
  # Requires Go 1.26, drop when that's the default.
  buildGo126Module,
  nix-update-script,
  versionCheckHook,
  applyPatches,
}:

buildGoModule (finalAttrs: {
buildGo126Module (finalAttrs: {
  pname = "athens";
  version = "0.16.2";
  version = "0.17.0";

  src = applyPatches {
    src = fetchFromGitHub {
      owner = "gomods";
      repo = "athens";
      tag = "v${finalAttrs.version}";
    hash = "sha256-Mv0fJ5EiU/Nxakr1sLx2rcJnQ9SEjFMn+2Gf4qsnN3w=";
      hash = "sha256-4KCPYqLtqz46zr5+LB4CyG4ZQrjQaPgMEhCuGOWIJKg=";
    };
    # Trim the patch version, not needed anyway.
    postPatch = ''
      sed -i 's/go 1.26.2/go 1.26/' go.mod
    '';
  };

  vendorHash = "sha256-bn3He7ImXxrl+Or2pqzVpM8VxbfqDDupwtZbdSMd4HI=";
  vendorHash = "sha256-he7GNkCfqLgOXuCTahvqOnwW5TpbYjlCMfMGfKGwYZ4=";

  env.CGO_ENABLED = "0";
  ldflags = [