mirror of
https://git.gay/pyrox/aux-docs
synced 2024-11-23 00:17:56 +00:00
fix build
This commit is contained in:
parent
fd6eb5ec36
commit
e12f7ef2da
|
@ -28,17 +28,14 @@ stdenvNoCC.mkDerivation {
|
||||||
ln -s ${pkgs.amg.options-doc.optionsJSON}/share/doc/nixos/options.json ./config-options.json
|
ln -s ${pkgs.amg.options-doc.optionsJSON}/share/doc/nixos/options.json ./config-options.json
|
||||||
'';
|
'';
|
||||||
|
|
||||||
pythonInterpreterTable = lib.amg.python-interp-table;
|
pythonInterpreterTable = pkgs.callPackage ./python-interp-table.nix { };
|
||||||
|
|
||||||
passAsFile = [ "pythonInterpreterTable" ];
|
passAsFile = [ "pythonInterpreterTable" ];
|
||||||
|
|
||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
substituteInPlace ./languages-frameworks/python.section.md --subst-var-by python-interpreter-table "$(<"$pythonInterpreterTablePath")"
|
substituteInPlace ./languages-frameworks/python.section.md --subst-var-by python-interpreter-table "$(<"$pythonInterpreterTablePath")"
|
||||||
|
|
||||||
cat \
|
mv ./functions/library.md.in ./functions/library.md
|
||||||
./functions/library.md.in \
|
|
||||||
${pkgs.amg.lib-docs}/index.md \
|
|
||||||
> ./functions/library.md
|
|
||||||
substitute ./manual.md.in ./manual.md \
|
substitute ./manual.md.in ./manual.md \
|
||||||
--replace-fail '@MANUAL_VERSION@' '${lib.version}'
|
--replace-fail '@MANUAL_VERSION@' '${lib.version}'
|
||||||
|
|
||||||
|
@ -58,7 +55,6 @@ stdenvNoCC.mkDerivation {
|
||||||
mv languages-frameworks out/languages-frameworks
|
mv languages-frameworks out/languages-frameworks
|
||||||
mkdir out/lib
|
mkdir out/lib
|
||||||
cp ${pkgs.amg.lib-docs}/*.md out/lib/
|
cp ${pkgs.amg.lib-docs}/*.md out/lib/
|
||||||
rm out/lib/index.md
|
|
||||||
mv module-system out/module-system
|
mv module-system out/module-system
|
||||||
mv packages out/packages
|
mv packages out/packages
|
||||||
mv stdenv out/stdenv
|
mv stdenv out/stdenv
|
||||||
|
|
|
@ -1,6 +1,12 @@
|
||||||
{ inputs }:
|
{
|
||||||
|
pkgs ? (
|
||||||
|
import ../.. {
|
||||||
|
config = { };
|
||||||
|
overlays = [ ];
|
||||||
|
}
|
||||||
|
),
|
||||||
|
}:
|
||||||
let
|
let
|
||||||
pkgs = inputs.nixpkgs;
|
|
||||||
lib = pkgs.lib;
|
lib = pkgs.lib;
|
||||||
inherit (lib.attrsets) attrNames filterAttrs;
|
inherit (lib.attrsets) attrNames filterAttrs;
|
||||||
inherit (lib.lists)
|
inherit (lib.lists)
|
Loading…
Reference in a new issue