add aux-wiki

This commit is contained in:
Pyrox 2024-07-01 15:09:48 -04:00
parent 6d581eb227
commit d0b76f2c6d
Signed by untrusted user: pyrox
GPG key ID: 8CDF3F7CAA53A0F5
5 changed files with 49 additions and 4 deletions

View file

@ -1,5 +1,21 @@
{ {
"nodes": { "nodes": {
"aux-wiki": {
"flake": false,
"locked": {
"lastModified": 1719683482,
"narHash": "sha256-WF9uI8hbuvy+zCoCJa967mVnqyCbZBf3FSth6vwDR/I=",
"ref": "refs/heads/main",
"rev": "3af79f1e4db60efba1f1b772628796b097c144ed",
"revCount": 187,
"type": "git",
"url": "https://git.auxolotl.org/auxolotl/wiki"
},
"original": {
"type": "git",
"url": "https://git.auxolotl.org/auxolotl/wiki"
}
},
"flake-compat": { "flake-compat": {
"flake": false, "flake": false,
"locked": { "locked": {
@ -71,6 +87,7 @@
}, },
"root": { "root": {
"inputs": { "inputs": {
"aux-wiki": "aux-wiki",
"nixpkgs": "nixpkgs", "nixpkgs": "nixpkgs",
"snowfall-lib": "snowfall-lib" "snowfall-lib": "snowfall-lib"
} }

View file

@ -6,6 +6,8 @@
url = "github:snowfallorg/lib"; url = "github:snowfallorg/lib";
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };
inputs.aux-wiki.url = "git+https://git.auxolotl.org/auxolotl/wiki";
inputs.aux-wiki.flake = false;
outputs = outputs =
inputs: inputs:

View file

@ -0,0 +1,16 @@
{ stdenvNoCC, inputs }:
stdenvNoCC.mkDerivation {
pname = "aux-wiki";
version = "unstable";
src = inputs.aux-wiki;
installPhase = ''
mkdir $out
cp *.md $out/
cp -r agreements $out/agreements
cp -r community $out/community
cp -r contributing $out/contributing
cp -r docs $out/docs
'';
}

View file

@ -0,0 +1,14 @@
{ stdenvNoCC, pkgs }:
stdenvNoCC.mkDerivation {
pname = "md-manual";
version = "1.0.0";
src = ./.;
installPhase = ''
mkdir $out
cp -r ${pkgs.amg.manual-assets} $out/assets
cp -r ${pkgs.amg.nixpkgs-manual} $out/Nixpkgs/
cp -r ${pkgs.amg.aux-wiki} $out/Aux
'';
}

View file

@ -40,10 +40,6 @@ stdenvNoCC.mkDerivation {
--replace-fail '@MANUAL_VERSION@' '${lib.version}' --replace-fail '@MANUAL_VERSION@' '${lib.version}'
mkdir out mkdir out
mkdir out/assets
cp ${pkgs.amg.manual-assets}/* out/assets/
mv preface.chapter.md out/index.md mv preface.chapter.md out/index.md
mv build-helpers out/build-helpers mv build-helpers out/build-helpers
mv build-helpers.md out/build-helpers/index.md mv build-helpers.md out/build-helpers/index.md