this repo has no description
1{
2 lib,
3 stdenv,
4 nodejs_22,
5 pnpm_10,
6}:
7
8stdenv.mkDerivation (finalAttrs: {
9 pname = "moonlight";
10 version = (builtins.fromJSON (builtins.readFile ./../package.json)).version;
11
12 src = ./..;
13
14 nativeBuildInputs = [
15 nodejs_22
16 pnpm_10.configHook
17 ];
18
19 pnpmDeps = pnpm_10.fetchDeps {
20 inherit (finalAttrs) pname version src;
21 hash = "sha256-I+zRCUqJabpGJRFBGW0NrM9xzyzeCjioF54zlCpynBU=";
22 };
23
24 env = {
25 NODE_ENV = "production";
26 MOONLIGHT_VERSION = "v${finalAttrs.version}";
27 };
28
29 buildPhase = ''
30 runHook preBuild
31
32 pnpm run build
33
34 runHook postBuild
35 '';
36
37 installPhase = ''
38 runHook preInstall
39
40 cp -r dist $out
41
42 runHook postInstall
43 '';
44
45 meta = with lib; {
46 description = "Yet another Discord mod";
47 homepage = "https://moonlight-mod.github.io/";
48 license = licenses.lgpl3;
49 maintainers = with maintainers; [ notnite ];
50 };
51})