2020-04-24 23:36:52 +00:00
|
|
|
{ buildGoPackage, stdenv, fetchFromGitHub }:
|
|
|
|
|
|
|
|
buildGoPackage rec {
|
2020-05-29 06:06:01 +00:00
|
|
|
version = "2.2.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "xurls";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mvdan";
|
|
|
|
repo = "xurls";
|
|
|
|
rev = "v${version}";
|
2020-05-29 06:06:01 +00:00
|
|
|
sha256 = "0w7i1yfl5q24wvmsfb3fz1zcqsdh4c6qikjnmswxbjc7wva8rngg";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
goPackagePath = "mvdan.cc/xurls/v2";
|
|
|
|
subPackages = [ "cmd/xurls" ];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Extract urls from text";
|
|
|
|
homepage = "https://github.com/mvdan/xurls";
|
|
|
|
maintainers = with maintainers; [ koral ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
license = licenses.bsd3;
|
|
|
|
};
|
|
|
|
}
|