3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/text/xurls/default.nix

25 lines
573 B
Nix
Raw Normal View History

{ buildGoPackage, lib, fetchFromGitHub }:
2015-07-14 09:25:35 +01:00
2018-12-11 18:28:09 +00:00
buildGoPackage rec {
2021-08-14 11:44:20 +01:00
version = "2.3.0";
pname = "xurls";
2015-07-14 09:25:35 +01:00
src = fetchFromGitHub {
owner = "mvdan";
repo = "xurls";
rev = "v${version}";
2021-08-14 11:44:20 +01:00
sha256 = "sha256-+oWYW7ZigkNS6VADNmVwarIsYyd730RAdDwnNIAYvlA=";
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 lib; {
2015-07-14 09:25:35 +01:00
description = "Extract urls from text";
homepage = "https://github.com/mvdan/xurls";
2019-12-26 21:28:10 +00:00
maintainers = with maintainers; [ koral ];
platforms = platforms.unix;
2018-07-22 15:57:28 +01:00
license = licenses.bsd3;
2015-07-14 09:25:35 +01:00
};
}