xurls: 2.3.0 -> 2.4.0

main
Aaron Jheng 2 years ago
parent e0dc07236e
commit 33c3d1b452
No known key found for this signature in database
GPG Key ID: F6A547A869D050A3
  1. 14
      pkgs/tools/text/xurls/default.nix

@ -1,18 +1,19 @@
{ buildGoPackage, lib, fetchFromGitHub }:
{ buildGoModule, lib, fetchFromGitHub }:
buildGoPackage rec {
version = "2.3.0";
buildGoModule rec {
pname = "xurls";
version = "2.4.0";
src = fetchFromGitHub {
owner = "mvdan";
repo = "xurls";
rev = "v${version}";
sha256 = "sha256-+oWYW7ZigkNS6VADNmVwarIsYyd730RAdDwnNIAYvlA=";
sha256 = "sha256-lyDcwbdVKyFRfsYCcPAgIgvrEEdwK0lxmJTvMJcFBCw=";
};
goPackagePath = "mvdan.cc/xurls/v2";
subPackages = [ "cmd/xurls" ];
vendorSha256 = "sha256-lJzgJxW/GW3J09uKQGoEX+UsHnB1pGG71U/zy4b9rXo=";
ldflags = [ "-s" "-w" ];
meta = with lib; {
description = "Extract urls from text";
@ -20,5 +21,6 @@ buildGoPackage rec {
maintainers = with maintainers; [ koral ];
platforms = platforms.unix;
license = licenses.bsd3;
mainProgram = "xurls";
};
}

Loading…
Cancel
Save