nixpkgs/pkgs/tools/networking/clash/default.nix
2020-11-17 13:09:31 +02:00

30 lines
700 B
Nix

{ stdenv, fetchFromGitHub, buildGoModule }:
buildGoModule rec {
pname = "clash";
version = "1.2.0";
src = fetchFromGitHub {
owner = "Dreamacro";
repo = pname;
rev = "v${version}";
sha256 = "16dgpq67bcy9z5lqwykwh61kwxi164khxqc78i6a3dc9xyivwfya";
};
vendorSha256 = "0gmyq54h9zb4ry2p24nsp8ybqrmaq69zlyp220w16kamx790j07j";
doCheck = false;
buildFlagsArray = [
"-ldflags="
"-X github.com/Dreamacro/clash/constant.Version=${version}"
];
meta = with stdenv.lib; {
description = "A rule-based tunnel in Go";
homepage = "https://github.com/Dreamacro/clash";
license = licenses.gpl3;
maintainers = with maintainers; [ contrun Br1ght0ne ];
};
}