blob: b54fa83a4ffb4c6664249fe68a4c9e59b44d5c75 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
{
lib,
fetchFromGitHub,
nix-update-script,
nodejs,
pnpm,
stdenv,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "metacubexd";
version = "1.141.1";
src = fetchFromGitHub {
owner = "MetaCubeX";
repo = "metacubexd";
rev = "v${finalAttrs.version}";
hash = "sha256-UstINf7Hv5QvinmCFpZC5ySIdec31Qzwz8KJ28smNOE=";
};
nativeBuildInputs = [
pnpm.configHook
nodejs
];
pnpmDeps = pnpm.fetchDeps {
inherit (finalAttrs) pname version src;
hash = "sha256-Tl84geP6E/nUcx0I++/Gmuyu5n3RsmMKSsj8tgG2/eg=";
};
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 ];
};
})
|