Merge pull request #167123 from aaronjheng/xurls

xurls: 2.3.0 -> 2.4.0
This commit is contained in:
Bobby Rong 2022-05-16 00:24:19 +08:00 committed by GitHub
commit fe8d073af7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,24 +1,24 @@
{ buildGoPackage, lib, fetchFromGitHub }:
{ buildGoModule, lib, fetchFromGitHub }:
buildGoPackage rec {
version = "2.3.0";
buildGoModule rec {
pname = "xurls";
version = "2.4.0";
src = fetchFromGitHub {
owner = "mvdan";
repo = "xurls";
rev = "v${version}";
sha256 = "sha256-+oWYW7ZigkNS6VADNmVwarIsYyd730RAdDwnNIAYvlA=";
sha256 = "sha256-lyDcwbdVKyFRfsYCcPAgIgvrEEdwK0lxmJTvMJcFBCw=";
};
goPackagePath = "mvdan.cc/xurls/v2";
subPackages = [ "cmd/xurls" ];
vendorSha256 = "sha256-lJzgJxW/GW3J09uKQGoEX+UsHnB1pGG71U/zy4b9rXo=";
ldflags = [ "-s" "-w" ];
meta = with lib; {
description = "Extract urls from text";
homepage = "https://github.com/mvdan/xurls";
maintainers = with maintainers; [ koral ];
platforms = platforms.unix;
license = licenses.bsd3;
};
}