add lix-docs

This commit is contained in:
Pyrox 2024-07-10 13:58:44 -04:00
parent a16880d91d
commit 07d338a19a
Signed by untrusted user: pyrox
GPG key ID: 8CDF3F7CAA53A0F5
3 changed files with 8 additions and 18 deletions

View file

@ -1,26 +1,12 @@
{ channels, ... }:
final: prev: {
lix-docs = channels.nixpkgs.lix.overrideAttrs (old: {
buildPhase = ''
postBuild = ''
TERM=dumb ninja doc/manual/markdown
'';
checkPhase = ''
true
'';
installPhase = ''
ls -l doc
mkdir $out $debug $man $doc $dev
mv doc/manual/* $out/
mv doc/manual/* $debug/
mv doc/manual/* $man/
mv doc/manual/* $doc/
mv doc/manual/* $dev/
'';
fixupPhase = ''
true
'';
installCheckPhase = ''
true
postInstall = ''
mkdir -p $doc/manualMD
mv doc/manual/markdown/* $doc/manualMD/
'';
});
}

View file

@ -11,5 +11,6 @@ stdenvNoCC.mkDerivation {
cp -r ${pkgs.amg.manual-assets} $out/assets
cp -r ${pkgs.amg.nixpkgs-manual} $out/Nixpkgs/
cp -r ${pkgs.amg.aux-wiki} $out/Aux
cp -r ${pkgs.lix-docs.doc}/manualMD $out/Lix
'';
}

View file

@ -14,3 +14,6 @@ We host the following documentation:
- [Aux Wiki](Aux)
The [Aux Wiki](https://wiki.auxolotl.org), rendered and searchable here, statically. No JS required!
- [Lix Docs](Lix)
The [Lix Docs](https://docs.lix.systems/manual/lix/nightly/), yet another high-quality resource for those using Nix or Lix.