Skip to content

Commit

Permalink
clash: reinit at 1.18.0
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronjheng committed Sep 30, 2024
1 parent 220530a commit bfdc37a
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 1 deletion.
45 changes: 45 additions & 0 deletions pkgs/by-name/cl/clash/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{
lib,
fetchFromGitHub,
buildGoModule,
testers,
clash,
}:

buildGoModule rec {
pname = "clash";
version = "1.18.0";

# Canonical Upstream has been removed.
src = fetchFromGitHub {
owner = "aaronjheng";
repo = "clash";
rev = "v${version}";
hash = "sha256-LqjSPlPkR5sB4Z1pmpdE9r66NN7pwgE9GK4r1zSFlxs=";
};

vendorHash = "sha256-EWAbEFYr15RiJk9IXF6KaaX4GaSCa6E4+8rKL4/XG8Y=";

subPackages = [ "." ];

CGO_ENABLED = 0;

ldflags = [
"-s"
"-w"
"-X github.com/Dreamacro/clash/constant.Version=${version}"
];

passthru.tests.version = testers.testVersion {
package = clash;
command = "clash -v";
};

meta = {
description = "Rule-based tunnel in Go";
homepage = "https://github.com/Dreamacro/clash";
license = lib.licenses.gpl3Only;
maintainers = with lib.maintainers; [ aaronjheng ];
mainProgram = "clash";
};
}
1 change: 0 additions & 1 deletion pkgs/top-level/aliases.nix
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,6 @@ mapAliases {
crispyDoom = crispy-doom; # Added 2023-05-01
crossLibcStdenv = stdenvNoLibc; # Added 2024-09-06
cryptowatch-desktop = throw "Cryptowatch Desktop was sunset on September 30th 2023 and has been removed from nixpkgs"; # Added 2023-12-22
clash = throw "'clash' has been removed, upstream gone. Consider using 'mihomo' instead."; # added 2023-11-10
clash-verge = throw "'clash-verge' has been removed, as it was broken and unmaintained. Consider using 'clash-verge-rev' or 'clash-nyanpasu' instead"; # Added 2024-09-17
clasp = clingo; # added 2022-12-22
claws-mail-gtk3 = claws-mail; # Added 2021-07-10
Expand Down

0 comments on commit bfdc37a

Please sign in to comment.