2018-12-11 19:28:09 +01:00
|
|
|
{ buildGoPackage, stdenv, fetchFromGitHub }:
|
2015-07-14 10:25:35 +02:00
|
|
|
|
2018-12-11 19:28:09 +01:00
|
|
|
buildGoPackage rec {
|
|
|
|
version = "2.0.0";
|
2015-07-14 10:25:35 +02:00
|
|
|
name = "xurls-${version}";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mvdan";
|
|
|
|
repo = "xurls";
|
|
|
|
rev = "v${version}";
|
2018-12-11 19:28:09 +01:00
|
|
|
sha256 = "1jdjwlp19r8cb7vycyrjmpwf8dz2fzrqphq4lkvy9x2v7x0kksx8";
|
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
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Extract urls from text";
|
|
|
|
homepage = https://github.com/mvdan/xurls;
|
2017-02-28 23:19:28 +01:00
|
|
|
maintainers = with maintainers; [ koral ndowens ];
|
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
|
|
|
};
|
|
|
|
}
|