Skip to content

Commit

Permalink
chore: added clash2singbox
Browse files Browse the repository at this point in the history
  • Loading branch information
Erven2016 committed Nov 20, 2024
1 parent 2184236 commit 7e9a755
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@

## Packages

- `clash2singbox`
- fonts
- otf-pingfang
`otf-pingfang`
2 changes: 2 additions & 0 deletions default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,6 @@ in

fonts = import ./pkgs/fonts { };

clash2singbox = callPackage ./pkgs/programs/clash2singbox { };

}
32 changes: 32 additions & 0 deletions pkgs/programs/clash2singbox/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
buildGoModule,
fetchFromGitHub,
}:
buildGoModule {
name = "clash2singbox";
version = "efa112d";

src = fetchFromGitHub {
owner = "xmdhs";
repo = "clash2singbox";
rev = "efa112d7d5a7ed87db6ed4d5fd6e294b6737ed80";
hash = "sha256-ht359qipoRH8+QyKtk0wp4UBSq6SwOP64vYlyCxDdNI=";
};

vendorHash = "sha256-kjiF6NoZ4b2of2L3phHm5GG2UUG00oi+/mkFTwvyfD4=";
proxyVendor = true;

preBuild = ''
CGO_ENABLED=0
GOFLAGS="-trimpath"
export CGO_ENABLED GOFLAGS
'';

ldflags = [
"-w"
"-s"
];

}
Empty file added pkgs/programs/default.nix
Empty file.

0 comments on commit 7e9a755

Please sign in to comment.