Skip to content

Commit

Permalink
clash-rs: set mainProgram to clash (#362385)
Browse files Browse the repository at this point in the history
  • Loading branch information
Aleksanaa authored Dec 6, 2024
2 parents 097248f + 889f246 commit 408068a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions pkgs/by-name/cl/clash-rs/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,12 @@ rustPlatform.buildRustPackage rec {

doCheck = false; # test failed

doInstallCheck = true;
postInstall = ''
# Align with upstream
ln -s "$out/bin/clash-rs" "$out/bin/clash"
'';

doInstallCheck = true;
versionCheckProgramArg = "--version";

nativeInstallCheckInputs = [
Expand All @@ -45,7 +49,7 @@ rustPlatform.buildRustPackage rec {
meta = {
description = "Custom protocol, rule based network proxy software";
homepage = "https://github.com/Watfaq/clash-rs";
mainProgram = "clash-rs";
mainProgram = "clash";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ aucub ];
platforms = lib.platforms.linux ++ lib.platforms.darwin;
Expand Down

0 comments on commit 408068a

Please sign in to comment.