mirror of
https://git.gay/pyrox/aux-docs
synced 2024-10-30 00:27:57 +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
|
||||
'';
|
||||
|
||||
pythonInterpreterTable = lib.amg.python-interp-table;
|
||||
pythonInterpreterTable = pkgs.callPackage ./python-interp-table.nix { };
|
||||
|
||||
passAsFile = [ "pythonInterpreterTable" ];
|
||||
|
||||
buildPhase = ''
|
||||
substituteInPlace ./languages-frameworks/python.section.md --subst-var-by python-interpreter-table "$(<"$pythonInterpreterTablePath")"
|
||||
|
||||
cat \
|
||||
./functions/library.md.in \
|
||||
${pkgs.amg.lib-docs}/index.md \
|
||||
> ./functions/library.md
|
||||
mv ./functions/library.md.in ./functions/library.md
|
||||
substitute ./manual.md.in ./manual.md \
|
||||
--replace-fail '@MANUAL_VERSION@' '${lib.version}'
|
||||
|
||||
|
@ -58,7 +55,6 @@ stdenvNoCC.mkDerivation {
|
|||
mv languages-frameworks out/languages-frameworks
|
||||
mkdir out/lib
|
||||
cp ${pkgs.amg.lib-docs}/*.md out/lib/
|
||||
rm out/lib/index.md
|
||||
mv module-system out/module-system
|
||||
mv packages out/packages
|
||||
mv stdenv out/stdenv
|
||||
|
|
|
@ -1,6 +1,12 @@
|
|||
{ inputs }:
|
||||
{
|
||||
pkgs ? (
|
||||
import ../.. {
|
||||
config = { };
|
||||
overlays = [ ];
|
||||
}
|
||||
),
|
||||
}:
|
||||
let
|
||||
pkgs = inputs.nixpkgs;
|
||||
lib = pkgs.lib;
|
||||
inherit (lib.attrsets) attrNames filterAttrs;
|
||||
inherit (lib.lists)
|
Loading…
Reference in a new issue