patches and low-level development discussion
 help / color / mirror / code / Atom feed
blob 3b9e973cb3b16298d0690f94eb9331c86ee414a8 717 bytes (raw)
name: Documentation/default.nix 	 # note: path name is non-authoritative(*)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
 
# SPDX-FileCopyrightText: 2022-2023 Alyssa Ross <hi@alyssa.is>
# SPDX-FileCopyrightText: 2022 Unikie
# SPDX-License-Identifier: MIT

import ../lib/call-package.nix

({ callSpectrumPackage, src, lib, stdenvNoCC }:

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

  src = lib.fileset.toSource {
    root = ../.;
    fileset = lib.fileset.intersection src ./.;
  };
  sourceRoot = "source/Documentation";

  buildPhase = ''
    runHook preBuild
    jekyll build --disable-disk-cache -d $out
    runHook postBuild
  '';

  # The fixup phase would move `doc` to `share/doc` and we don't want that.
  dontFixup = true;
  dontInstall = true;

  nativeBuildInputs = [ (callSpectrumPackage ./jekyll.nix {}) ];
}) (_: {})

debug log:

solving 3b9e973 ...
found 3b9e973 in https://spectrum-os.org/git/spectrum

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this public inbox

	https://spectrum-os.org/git/doc
	https://spectrum-os.org/git/mktuntap
	https://spectrum-os.org/git/spectrum
	https://spectrum-os.org/git/ucspi-vsock

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).