metacubexd: init at 1.140.0 (#297721)

* metacubexd: init at 1.140.0

* nixos/mihomo: add example for cfg.webui
This commit is contained in:
Guanran928
2024-06-10 18:45:19 +08:00
committed by GitHub
parent 11485a636d
commit e27092e106
3 changed files with 63 additions and 0 deletions

View File

@@ -25,6 +25,7 @@ in
webui = lib.mkOption {
default = null;
type = lib.types.nullOr lib.types.path;
example = lib.literalExpression "pkgs.metacubexd";
description = ''
Local web interface to use.

View File

@@ -0,0 +1,55 @@
{
lib,
fetchFromGitHub,
nix-update-script,
nodejs,
pnpm,
stdenv,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "metacubexd";
version = "1.140.0";
src = fetchFromGitHub {
owner = "MetaCubeX";
repo = "metacubexd";
rev = "v${finalAttrs.version}";
hash = "sha256-OVLG+MHgwWTorPuBTHsHUAY1FSN91j7xWgRDJ7FiO7E=";
};
nativeBuildInputs = [
pnpm.configHook
nodejs
];
pnpmDeps = pnpm.fetchDeps {
inherit (finalAttrs) pname version src;
hash = "sha256-24PkWT5UZJwMtL3y8qdf3XFuf3v5PjiP9XESbw3oppY=";
};
buildPhase = ''
runHook preBuild
pnpm build
runHook postBuild
'';
installPhase = ''
runHook preInstall
cp -r ./dist $out
runHook postInstall
'';
passthru.updateScript = nix-update-script { };
meta = {
description = "Clash.Meta Dashboard, The Official One, XD";
homepage = "https://github.com/MetaCubeX/metacubexd";
license = lib.licenses.mit;
platforms = lib.platforms.all;
maintainers = with lib.maintainers; [ Guanran928 ];
};
})

View File

@@ -31256,6 +31256,13 @@ with pkgs;
manuskript = libsForQt5.callPackage ../applications/editors/manuskript { };
metacubexd = callPackage ../by-name/me/metacubexd/package.nix {
pnpm = callPackage ../development/tools/pnpm/generic.nix {
version = "9.1.4";
hash = "sha256-MKGAGsTnI3ee/tE6IfTDn562yfu0ztEBvOBrQiWT18k=";
};
};
minari = python3Packages.toPythonApplication python3Packages.minari;
mindforger = libsForQt5.callPackage ../applications/editors/mindforger { };