Unverified Commit 9a076a60 authored by jopejoe1's avatar jopejoe1 Committed by GitHub
Browse files

mods: 1.7.0 -> 1.8.1 (#425603)

parents 84827424 f77112d0
Loading
Loading
Loading
Loading
+10 −3
Original line number Diff line number Diff line
@@ -13,16 +13,23 @@

buildGoModule (finalAttrs: {
  pname = "mods";
  version = "1.7.0";
  version = "1.8.1";

  src = fetchFromGitHub {
    owner = "charmbracelet";
    repo = "mods";
    tag = "v${finalAttrs.version}";
    hash = "sha256-wzLYkcgUWPzghJEhYRh7HH19Rqov1RJAxdgp3AGnOTY=";
    hash = "sha256-CT90uMQc0quQK/vCeLiHH8taEkCSDIcO7Q3aA+oaNmY=";
  };

  vendorHash = "sha256-L+4vkh7u6uMm5ICMk8ke5RVY1oYeKMYWVYYq9YqpKiw=";
  # Otherwise checks fail with `panic: open /etc/protocols: operation not permitted` when sandboxing is enabled on Darwin
  # https://github.com/NixOS/nixpkgs/pull/381645#issuecomment-2656211797
  modPostBuild = ''
    substituteInPlace vendor/modernc.org/libc/honnef.co/go/netdb/netdb.go \
      --replace-quiet '!os.IsNotExist(err)' '!os.IsNotExist(err) && !os.IsPermission(err)'
  '';

  vendorHash = "sha256-jtSuSKy6GpWrJAXVN2Acmtj8klIQrgJjNwgyRZIyqyY=";

  nativeBuildInputs = lib.optionals (installManPages || installShellCompletions) [
    installShellFiles