# SPDX-FileCopyrightText: 2025 Ruby Iris Juric # # SPDX-License-Identifier: 0BSD { stdenv, lib, nodejs, pnpm, }: let fs = lib.fileset; sources = fs.intersection (fs.gitTracked ../docs) ( fs.unions [ ../docs/astro.config.mjs ../docs/package.json ../docs/pnpm-lock.yaml ../docs/src ../docs/tsconfig.json ] ); src = fs.toSource { root = ../docs; fileset = sources; }; in stdenv.mkDerivation rec { pname = "gleam2nix-docs"; version = "0.1.0"; inherit src; pnpmDeps = pnpm.fetchDeps { inherit pname version src; fetcherVersion = 2; hash = "sha256-1QBuT8E7acKsEQDv444UYyt2K7KXysMTDXYPc4II4rM="; }; nativeBuildInputs = [ nodejs pnpm.configHook ]; buildPhase = '' pnpm build ''; installPhase = '' cp -r dist $out ''; }