mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-01 03:12:51 +00:00
46420bbaa3
treewide replacement of stdenv.mkDerivation rec { name = "*-${version}"; version = "*"; to pname
25 lines
590 B
Nix
25 lines
590 B
Nix
{ buildGoPackage, stdenv, fetchFromGitHub }:
|
|
|
|
buildGoPackage rec {
|
|
version = "2.0.0";
|
|
pname = "xurls";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "mvdan";
|
|
repo = "xurls";
|
|
rev = "v${version}";
|
|
sha256 = "1jdjwlp19r8cb7vycyrjmpwf8dz2fzrqphq4lkvy9x2v7x0kksx8";
|
|
};
|
|
|
|
goPackagePath = "mvdan.cc/xurls/v2";
|
|
subPackages = [ "cmd/xurls" ];
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "Extract urls from text";
|
|
homepage = https://github.com/mvdan/xurls;
|
|
maintainers = with maintainers; [ koral ndowens ];
|
|
platforms = platforms.unix;
|
|
license = licenses.bsd3;
|
|
};
|
|
}
|