xurls: fix build with go 1.26 (#516973)

This commit is contained in:
Yohann Boniface
2026-05-05 21:57:45 +00:00
committed by GitHub
+9
View File
@@ -2,6 +2,7 @@
lib,
buildGoModule,
fetchFromGitHub,
fetchpatch,
}:
buildGoModule (finalAttrs: {
@@ -17,6 +18,14 @@ buildGoModule (finalAttrs: {
vendorHash = "sha256-Bks47kusGgVsbNiLq3QxP/dhIp72HGYeMhdifFwY340=";
patches = [
(fetchpatch {
name = "go-1.26.patch";
url = "https://github.com/mvdan/xurls/commit/6fcda1fd6decab4a6bc49ced3b36d666cc57b7cf.patch";
hash = "sha256-5X2mK9Xfjmu1kaZPeut4RE3r4ku6jRDwidtzRpF5Qis=";
})
];
ldflags = [
"-s"
"-w"