From 07d338a19a7d9c082dcedb141bd7072093011431 Mon Sep 17 00:00:00 2001 From: Pyrox Date: Wed, 10 Jul 2024 13:58:44 -0400 Subject: [PATCH] add lix-docs --- overlays/lix-docs/default.nix | 22 ++++------------------ packages/md-manual/default.nix | 1 + packages/md-manual/index.md | 3 +++ 3 files changed, 8 insertions(+), 18 deletions(-) diff --git a/overlays/lix-docs/default.nix b/overlays/lix-docs/default.nix index 68b13fd..b0f09f0 100644 --- a/overlays/lix-docs/default.nix +++ b/overlays/lix-docs/default.nix @@ -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/ ''; }); } diff --git a/packages/md-manual/default.nix b/packages/md-manual/default.nix index 48f95a5..662c7d7 100644 --- a/packages/md-manual/default.nix +++ b/packages/md-manual/default.nix @@ -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 ''; } diff --git a/packages/md-manual/index.md b/packages/md-manual/index.md index c33278a..bb1624f 100644 --- a/packages/md-manual/index.md +++ b/packages/md-manual/index.md @@ -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.