xurls: fix build with go 1.26

https://hydra.nixos.org/build/327228729
This commit is contained in:
Tom Hunze
2026-05-05 20:26:11 +02:00
parent 32d654b9fb
commit 371f9bf18c
+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"