mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-10-08 21:56:03 +03:00
xurls: 2.3.0 -> 2.4.0
This commit is contained in:
parent
e0dc07236e
commit
33c3d1b452
@ -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…
Reference in New Issue
Block a user