nixpkgs/pkgs/tools/networking/clash/default.nix

24 lines
591 B
Nix
Raw Normal View History

2019-12-30 02:18:10 +00:00
{ stdenv, fetchFromGitHub, buildGoModule }:
buildGoModule rec {
pname = "clash";
version = "0.16.0";
src = fetchFromGitHub {
owner = "Dreamacro";
repo = pname;
rev = "v${version}";
sha256 = "1k6afpazggpd7cabbw6ldv77bjj43083d5diy2w0iq5nw69gmwd3";
};
modSha256 = "1fx53df67mq7p3ampr96x8hd99v2991alb16v8iq36f032raa32f";
meta = with stdenv.lib; {
description = "A rule-based tunnel in Go";
homepage = "https://github.com/Dreamacro/clash";
license = licenses.gpl3;
maintainers = with maintainers; [ contrun ];
platforms = platforms.all;
};
}