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"
|
"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": {
|
"nix-darwin": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nixpkgs": [
|
"nixpkgs": [
|
||||||
|
@ -520,7 +503,6 @@
|
||||||
"hyprland-protocols": "hyprland-protocols",
|
"hyprland-protocols": "hyprland-protocols",
|
||||||
"impermanence": "impermanence",
|
"impermanence": "impermanence",
|
||||||
"lanzaboote": "lanzaboote",
|
"lanzaboote": "lanzaboote",
|
||||||
"metacubexd": "metacubexd",
|
|
||||||
"nix-darwin": "nix-darwin",
|
"nix-darwin": "nix-darwin",
|
||||||
"nixpak": "nixpak",
|
"nixpak": "nixpak",
|
||||||
"nixpak-pkgs": "nixpak-pkgs",
|
"nixpak-pkgs": "nixpak-pkgs",
|
||||||
|
|
|
@ -145,11 +145,6 @@
|
||||||
#};
|
#};
|
||||||
|
|
||||||
## Non-Flake
|
## Non-Flake
|
||||||
### Clash WebUI
|
|
||||||
metacubexd = {
|
|
||||||
url = "github:MetaCubeX/metacubexd/gh-pages";
|
|
||||||
flake = false;
|
|
||||||
};
|
|
||||||
### My NeoVim configuration
|
### My NeoVim configuration
|
||||||
nvim = {
|
nvim = {
|
||||||
url = "github:Guanran928/nvim";
|
url = "github:Guanran928/nvim";
|
||||||
|
@ -161,6 +156,7 @@
|
||||||
eachSystem = inputs.nixpkgs.lib.genAttrs (import inputs.systems);
|
eachSystem = inputs.nixpkgs.lib.genAttrs (import inputs.systems);
|
||||||
in {
|
in {
|
||||||
formatter = eachSystem (system: inputs.nixpkgs.legacyPackages.${system}.alejandra);
|
formatter = eachSystem (system: inputs.nixpkgs.legacyPackages.${system}.alejandra);
|
||||||
|
packages = eachSystem (system: import ./pkgs inputs.nixpkgs.legacyPackages.${system});
|
||||||
|
|
||||||
### NixOS
|
### NixOS
|
||||||
nixosConfigurations = {
|
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";
|
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
|
# - https://yacd.haishan.me
|
||||||
# - clash-dashboard (buggy):
|
# - clash-dashboard (buggy):
|
||||||
# - https://clash.razord.top
|
# - 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