# SPDX-FileCopyrightText: 2022 Alyssa Ross # SPDX-License-Identifier: MIT { pkgs ? import {} }: pkgs.callPackage ( { lib, runCommand, jekyll }: runCommand "spectrum-docs" { src = with lib; cleanSourceWith { src = cleanSource ./.; filter = name: _type: name != ".jekyll-cache" && name != "_site" && !(hasSuffix ".nix" name); }; nativeBuildInputs = [ jekyll ]; passthru = { inherit jekyll; }; } '' jekyll build --disable-disk-cache -s $src -d $out '' ) { jekyll = import ./jekyll.nix { inherit pkgs; }; }