summary refs log tree commit diff
path: root/pkgs/tools/text/xurls/default.nix
blob: b1fd02ca75bbceea4703a117c59f8913ac59914c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{ buildGoPackage, lib, stdenv, fetchFromGitHub }:

buildGoPackage rec {
  version = "2.2.0";
  pname = "xurls";

  src = fetchFromGitHub {
    owner = "mvdan";
    repo = "xurls";
    rev = "v${version}";
    sha256 = "0w7i1yfl5q24wvmsfb3fz1zcqsdh4c6qikjnmswxbjc7wva8rngg";
  };

  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;
  };
}