clash: drop as upstream has gone

This commit is contained in:
Nick Cao 2023-11-10 18:21:30 -05:00
parent 3536221702
commit f398f6c38f
No known key found for this signature in database
4 changed files with 1 additions and 53 deletions

View File

@ -4,7 +4,6 @@
, dpkg
, wrapGAppsHook
, autoPatchelfHook
, clash
, clash-meta
, openssl
, webkitgtk
@ -49,7 +48,6 @@ stdenv.mkDerivation rec {
'';
postFixup = ''
ln -s ${lib.getExe clash} $out/bin/clash
ln -s ${lib.getExe clash-meta} $out/bin/clash-meta
'';

View File

@ -1,49 +0,0 @@
{ lib
, fetchFromGitHub
, buildGoModule
, testers
, clash
}:
buildGoModule rec {
pname = "clash";
version = "1.18.0";
src = fetchFromGitHub {
owner = "Dreamacro";
repo = pname;
rev = "v${version}";
hash = "sha256-LqjSPlPkR5sB4Z1pmpdE9r66NN7pwgE9GK4r1zSFlxs=";
};
vendorHash = "sha256-EWAbEFYr15RiJk9IXF6KaaX4GaSCa6E4+8rKL4/XG8Y=";
# Do not build testing suit
excludedPackages = [ "./test" ];
CGO_ENABLED = 0;
ldflags = [
"-s"
"-w"
"-X github.com/Dreamacro/clash/constant.Version=${version}"
];
checkFlags = [
"-skip=TestParseRule" # Flaky tests
];
passthru.tests.version = testers.testVersion {
package = clash;
command = "clash -v";
};
meta = with lib; {
description = "A rule-based tunnel in Go";
homepage = "https://dreamacro.github.io/clash/";
changelog = "https://github.com/Dreamacro/clash/releases/tag/v${version}";
license = licenses.gpl3Only;
maintainers = with maintainers; [ contrun Br1ght0ne ];
mainProgram = "clash";
};
}

View File

@ -145,6 +145,7 @@ mapAliases ({
composable_kernel = throw "'composable_kernel' has been replaced with 'rocmPackages.composable_kernel'"; # Added 2023-10-08
cpp-ipfs-api = cpp-ipfs-http-client; # Project has been renamed. Added 2022-05-15
crispyDoom = crispy-doom; # Added 2023-05-01
clash = throw "'clash' has been removed, upstream gone. Consider using 'clash-meta' instead."; # added 2023-11-10
clasp = clingo; # added 2022-12-22
claws-mail-gtk3 = claws-mail; # Added 2021-07-10
cntk = throw "'cntk' has been removed from nixpkgs, as it was broken and unmaintained"; # Added 2023-10-09

View File

@ -4672,8 +4672,6 @@ with pkgs;
map-cmd = callPackage ../tools/misc/map { };
clash = callPackage ../tools/networking/clash { };
clash-geoip = callPackage ../data/misc/clash-geoip { };
clash-meta = callPackage ../tools/networking/clash-meta { };