2021-01-25 09:26:54 +01:00
|
|
|
{ buildGoPackage, lib, fetchFromGitHub }:
|
2015-07-14 10:25:35 +02:00
|
|
|
|
2018-12-11 19:28:09 +01:00
|
|
|
buildGoPackage rec {
|
2020-05-19 06:54:27 +02:00
|
|
|
version = "2.2.0";
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "xurls";
|
2015-07-14 10:25:35 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mvdan";
|
|
|
|
repo = "xurls";
|
|
|
|
rev = "v${version}";
|
2020-05-19 06:54:27 +02:00
|
|
|
sha256 = "0w7i1yfl5q24wvmsfb3fz1zcqsdh4c6qikjnmswxbjc7wva8rngg";
|
2015-07-14 10:25:35 +02:00
|
|
|
};
|
|
|
|
|
2018-12-11 19:28:09 +01:00
|
|
|
goPackagePath = "mvdan.cc/xurls/v2";
|
|
|
|
subPackages = [ "cmd/xurls" ];
|
2015-07-14 10:25:35 +02:00
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2015-07-14 10:25:35 +02:00
|
|
|
description = "Extract urls from text";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/mvdan/xurls";
|
2019-12-26 22:28:10 +01:00
|
|
|
maintainers = with maintainers; [ koral ];
|
2016-08-02 19:50:55 +02:00
|
|
|
platforms = platforms.unix;
|
2018-07-22 16:57:28 +02:00
|
|
|
license = licenses.bsd3;
|
2015-07-14 10:25:35 +02:00
|
|
|
};
|
|
|
|
}
|