2022-04-04 03:43:41 +00:00
|
|
|
{ buildGoModule, lib, fetchFromGitHub }:
|
2015-07-14 08:25:35 +00:00
|
|
|
|
2022-04-04 03:43:41 +00:00
|
|
|
buildGoModule rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "xurls";
|
2022-04-04 03:43:41 +00:00
|
|
|
version = "2.4.0";
|
2015-07-14 08:25:35 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mvdan";
|
|
|
|
repo = "xurls";
|
|
|
|
rev = "v${version}";
|
2022-04-04 03:43:41 +00:00
|
|
|
sha256 = "sha256-lyDcwbdVKyFRfsYCcPAgIgvrEEdwK0lxmJTvMJcFBCw=";
|
2015-07-14 08:25:35 +00:00
|
|
|
};
|
|
|
|
|
2022-04-04 03:43:41 +00:00
|
|
|
vendorSha256 = "sha256-lJzgJxW/GW3J09uKQGoEX+UsHnB1pGG71U/zy4b9rXo=";
|
|
|
|
|
|
|
|
ldflags = [ "-s" "-w" ];
|
2015-07-14 08:25:35 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2015-07-14 08:25:35 +00:00
|
|
|
description = "Extract urls from text";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/mvdan/xurls";
|
2019-12-26 21:28:10 +00:00
|
|
|
maintainers = with maintainers; [ koral ];
|
2018-07-22 14:57:28 +00:00
|
|
|
license = licenses.bsd3;
|
2015-07-14 08:25:35 +00:00
|
|
|
};
|
|
|
|
}
|