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