2018-12-11 18:28:09 +00:00
|
|
|
{ buildGoPackage, stdenv, fetchFromGitHub }:
|
2015-07-14 09:25:35 +01:00
|
|
|
|
2018-12-11 18:28:09 +00:00
|
|
|
buildGoPackage rec {
|
|
|
|
version = "2.0.0";
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "xurls";
|
2015-07-14 09:25:35 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mvdan";
|
|
|
|
repo = "xurls";
|
|
|
|
rev = "v${version}";
|
2018-12-11 18:28:09 +00:00
|
|
|
sha256 = "1jdjwlp19r8cb7vycyrjmpwf8dz2fzrqphq4lkvy9x2v7x0kksx8";
|
2015-07-14 09:25:35 +01:00
|
|
|
};
|
|
|
|
|
2018-12-11 18:28:09 +00:00
|
|
|
goPackagePath = "mvdan.cc/xurls/v2";
|
|
|
|
subPackages = [ "cmd/xurls" ];
|
2015-07-14 09:25:35 +01:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
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 ];
|
2016-08-02 18:50:55 +01:00
|
|
|
platforms = platforms.unix;
|
2018-07-22 15:57:28 +01:00
|
|
|
license = licenses.bsd3;
|
2015-07-14 09:25:35 +01:00
|
|
|
};
|
|
|
|
}
|