metacubexd: init at 1.134.0

This commit is contained in:
Guanran Wang 2023-12-13 13:54:34 +08:00
parent 0bbf04fabe
commit a401ea4bf9
Signed by: nyancat
SSH key fingerprint: SHA256:8oWGKciPALWut/6WA27oFKofX+6Wtc0gQnsefXLQx/8
6 changed files with 23 additions and 25 deletions

View file

@ -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",

View file

@ -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
View file

@ -0,0 +1,3 @@
pkgs: {
metacubexd = pkgs.callPackage ./metacubexd {};
}

View 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
'';
})

View file

@ -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;
}

View file

@ -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;
}