metacubexd: init at 1.134.0
This commit is contained in:
parent
0bbf04fabe
commit
a401ea4bf9
6 changed files with 23 additions and 25 deletions
18
flake.lock
18
flake.lock
|
@ -309,23 +309,6 @@
|
|||
"type": "github"
|
||||
}
|
||||
},
|
||||
"metacubexd": {
|
||||
"flake": false,
|
||||
"locked": {
|
||||
"lastModified": 1701612695,
|
||||
"narHash": "sha256-hFey2goRKGVP3u/xH22kprxyVSyPZGT6ffuDkj2sGMM=",
|
||||
"owner": "MetaCubeX",
|
||||
"repo": "metacubexd",
|
||||
"rev": "cb12a6f49f421f4f6cc80ea225c2314877c72b5f",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "MetaCubeX",
|
||||
"ref": "gh-pages",
|
||||
"repo": "metacubexd",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"nix-darwin": {
|
||||
"inputs": {
|
||||
"nixpkgs": [
|
||||
|
@ -520,7 +503,6 @@
|
|||
"hyprland-protocols": "hyprland-protocols",
|
||||
"impermanence": "impermanence",
|
||||
"lanzaboote": "lanzaboote",
|
||||
"metacubexd": "metacubexd",
|
||||
"nix-darwin": "nix-darwin",
|
||||
"nixpak": "nixpak",
|
||||
"nixpak-pkgs": "nixpak-pkgs",
|
||||
|
|
|
@ -145,11 +145,6 @@
|
|||
#};
|
||||
|
||||
## Non-Flake
|
||||
### Clash WebUI
|
||||
metacubexd = {
|
||||
url = "github:MetaCubeX/metacubexd/gh-pages";
|
||||
flake = false;
|
||||
};
|
||||
### My NeoVim configuration
|
||||
nvim = {
|
||||
url = "github:Guanran928/nvim";
|
||||
|
@ -161,6 +156,7 @@
|
|||
eachSystem = inputs.nixpkgs.lib.genAttrs (import inputs.systems);
|
||||
in {
|
||||
formatter = eachSystem (system: inputs.nixpkgs.legacyPackages.${system}.alejandra);
|
||||
packages = eachSystem (system: import ./pkgs inputs.nixpkgs.legacyPackages.${system});
|
||||
|
||||
### NixOS
|
||||
nixosConfigurations = {
|
||||
|
|
3
pkgs/default.nix
Normal file
3
pkgs/default.nix
Normal file
|
@ -0,0 +1,3 @@
|
|||
pkgs: {
|
||||
metacubexd = pkgs.callPackage ./metacubexd {};
|
||||
}
|
17
pkgs/metacubexd/default.nix
Normal file
17
pkgs/metacubexd/default.nix
Normal file
|
@ -0,0 +1,17 @@
|
|||
{
|
||||
fetchurl,
|
||||
stdenvNoCC,
|
||||
}:
|
||||
stdenvNoCC.mkDerivation (finalAttrs: {
|
||||
pname = "metacubexd";
|
||||
version = "1.134.0";
|
||||
src = fetchurl {
|
||||
url = "https://github.com/MetaCubeX/metacubexd/releases/download/v${finalAttrs.version}/compressed-dist.tgz";
|
||||
hash = "sha256-Xx2UReUAxHg4CrKqGs9vGmWRsosJE1OqnYSmp2wOC9M=";
|
||||
};
|
||||
sourceRoot = ".";
|
||||
installPhase = ''
|
||||
mkdir -p $out
|
||||
cp -r ./* $out
|
||||
'';
|
||||
})
|
|
@ -21,5 +21,5 @@
|
|||
command = "${pkgs.clash-meta}/bin/clash-meta -d /etc/clash-meta";
|
||||
};
|
||||
|
||||
environment.etc."clash-meta/metacubexd".source = inputs.metacubexd;
|
||||
environment.etc."clash-meta/metacubexd".source = inputs.self.packages.${pkgs.system}.metacubexd;
|
||||
}
|
||||
|
|
|
@ -59,5 +59,5 @@
|
|||
# - https://yacd.haishan.me
|
||||
# - clash-dashboard (buggy):
|
||||
# - https://clash.razord.top
|
||||
environment.etc."clash-meta/metacubexd".source = inputs.metacubexd;
|
||||
environment.etc."clash-meta/metacubexd".source = inputs.self.packages.${pkgs.system}.metacubexd;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue