summary refs log tree commit diff
path: root/default.nix
blob: dc920b51e827a771b50cff88454fb2faeafbe3d5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# SPDX-FileCopyrightText: 2020 Alyssa Ross <hi@alyssa.is>
# SPDX-License-Identifier: MIT

with import <nixpkgs> {};

stdenv.mkDerivation {
  name = "spectrum-doc";

  src = builtins.fetchGit ./.;

  nativeBuildInputs = [ asciidoctor ];

  installPhase = ''
    mkdir -p $out/share/doc/spectrum
    mv developer-manual.html $out/share/doc/spectrum
  '';

  meta = with lib; {
    homepage = "https://spectrum-os.org/doc/";
    maintainers = with maintainers; [ qyliss ];
    licenses = with licenses; [ fdl13Plus /* or */ cc-by-sa-40 ];
  };
}