summary refs log blame commit diff
path: root/Documentation/default.nix
blob: b0fe341cd380014a7ff8024c255df7b0eeb12361 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
                                                         
                                     

                              
                                                                              
 



                                             
 
              
                                      
 

                    
                            




                     
                                                 
 
                                 
 
   
                                                   
  
# SPDX-FileCopyrightText: 2022 Alyssa Ross <hi@alyssa.is>
# SPDX-FileCopyrightText: 2022 Unikie
# SPDX-License-Identifier: MIT

import ../lib/eval-config.nix ({ config, src, ... }: config.pkgs.callPackage (

{ lib, stdenvNoCC, jekyll, drawio-headless }:

stdenvNoCC.mkDerivation {
  name = "spectrum-docs";

  inherit src;
  sourceRoot = "source/Documentation";

  buildPhase = ''
    runHook preBuild
    scripts/build.sh -d $out
    runHook postBuild
  '';

  dontInstall = true;

  nativeBuildInputs = [ jekyll drawio-headless ];

  passthru = { inherit jekyll; };
}
) {
  jekyll = import ./jekyll.nix { inherit config; };
})