diff options
Diffstat (limited to 'nixpkgs/pkgs/tools/text/xurls/default.nix')
-rw-r--r-- | nixpkgs/pkgs/tools/text/xurls/default.nix | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/tools/text/xurls/default.nix b/nixpkgs/pkgs/tools/text/xurls/default.nix new file mode 100644 index 000000000000..774626561c94 --- /dev/null +++ b/nixpkgs/pkgs/tools/text/xurls/default.nix @@ -0,0 +1,24 @@ +{ buildGoPackage, lib, fetchFromGitHub }: + +buildGoPackage rec { + version = "2.3.0"; + pname = "xurls"; + + src = fetchFromGitHub { + owner = "mvdan"; + repo = "xurls"; + rev = "v${version}"; + sha256 = "sha256-+oWYW7ZigkNS6VADNmVwarIsYyd730RAdDwnNIAYvlA="; + }; + + goPackagePath = "mvdan.cc/xurls/v2"; + subPackages = [ "cmd/xurls" ]; + + meta = with lib; { + description = "Extract urls from text"; + homepage = "https://github.com/mvdan/xurls"; + maintainers = with maintainers; [ koral ]; + platforms = platforms.unix; + license = licenses.bsd3; + }; +} |