{ description = "Modrinth Statistics Fullstack (Backend + Frontend)"; inputs = { nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; }; outputs = { self, nixpkgs }: let system = "x86_64-linux"; version = "4.2.0"; pnpm = pkgs.pnpm_11; pkgs = import nixpkgs { inherit system; }; in { packages.${system}.default = pkgs.stdenv.mkDerivation (finalAttrs: { pname = "modrinth-statistics"; inherit version; src = ./.; nativeBuildInputs = [ pkgs.nodejs pkgs.pnpmConfigHook pnpm ]; pnpmDeps = pkgs.fetchPnpmDeps { inherit (finalAttrs) pname version src; inherit pnpm; fetcherVersion = 4; hash = "sha256-fCY/mb81g2JjEZ7/WrnwubZHv6E1ASlyUMNvXrP5LqM="; }; buildPhase = '' runHook preBuild export NUXT_TELEMETRY_DISABLED=1 pnpm build runHook postBuild ''; installPhase = '' runHook preInstall mkdir -p $out cp -r .output/* $out/ runHook postInstall ''; }); }; }