commit
fe8d073af7
1 changed files with 7 additions and 7 deletions
|
@ -1,24 +1,24 @@
|
|||
{ 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";
|
||||
homepage = "https://github.com/mvdan/xurls";
|
||||
maintainers = with maintainers; [ koral ];
|
||||
platforms = platforms.unix;
|
||||
license = licenses.bsd3;
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue