Something went wrong. Try again.
a Page to view some global statistics about Modrinth modrinth-statistics.tobinio.dev
Something went wrong. Try again.
modrinth-statistics flake.nix
1.3 kB · 50 lines
Nix
at main
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051{ 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 ''; }); };}