mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-12 02:40:31 +08:00
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:
@@ -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.
|
||||
|
||||
|
||||
55
pkgs/by-name/me/metacubexd/package.nix
Normal file
55
pkgs/by-name/me/metacubexd/package.nix
Normal 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 ];
|
||||
};
|
||||
})
|
||||
@@ -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 { };
|
||||
|
||||
Reference in New Issue
Block a user