nixpkgs/pkgs/tools/text/xurls/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

25 lines
567 B
Nix
Raw Normal View History

2022-04-04 04:43:41 +01:00
{ buildGoModule, lib, fetchFromGitHub }:
2015-07-14 09:25:35 +01:00
2022-04-04 04:43:41 +01:00
buildGoModule rec {
pname = "xurls";
2022-04-04 04:43:41 +01:00
version = "2.4.0";
2015-07-14 09:25:35 +01:00
src = fetchFromGitHub {
owner = "mvdan";
repo = "xurls";
rev = "v${version}";
2022-04-04 04:43:41 +01:00
sha256 = "sha256-lyDcwbdVKyFRfsYCcPAgIgvrEEdwK0lxmJTvMJcFBCw=";
2015-07-14 09:25:35 +01:00
};
2022-04-04 04:43:41 +01:00
vendorSha256 = "sha256-lJzgJxW/GW3J09uKQGoEX+UsHnB1pGG71U/zy4b9rXo=";
ldflags = [ "-s" "-w" ];
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 ];
2018-07-22 15:57:28 +01:00
license = licenses.bsd3;
2015-07-14 09:25:35 +01:00
};
}