mirror of
https://github.com/MetaCubeX/mihomo.git
synced 2024-12-22 23:57:26 +08:00
rm: default.nix
This commit is contained in:
parent
de4985a9b6
commit
89d1222b8f
34
default.nix
34
default.nix
@ -1,34 +0,0 @@
|
||||
{ lib
|
||||
, fetchFromGitHub
|
||||
, buildGoModule
|
||||
}:
|
||||
buildGoModule rec {
|
||||
pname = "clash-meta";
|
||||
version = "dev";
|
||||
src = ./.;
|
||||
vendorSha256 = "sha256-7HjYcoqWA5gvPUc5psCgy0UTc17CBzBJ/OiGvII/iBA=";
|
||||
|
||||
# Do not build testing suit
|
||||
excludedPackages = [ "./test" ];
|
||||
|
||||
CGO_ENABLED = 0;
|
||||
|
||||
ldflags = [
|
||||
"-s"
|
||||
"-w"
|
||||
"-X github.com/Dreamacro/clash/constant.Version=${version}"
|
||||
];
|
||||
|
||||
# network required
|
||||
doCheck = false;
|
||||
|
||||
postInstall = ''
|
||||
mv $out/bin/clash $out/bin/clash-meta
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Another Clash Kernel";
|
||||
homepage = "https://github.com/MetaCubeX/Clash.Meta";
|
||||
license = licenses.gpl3Only;
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user