fix build

This commit is contained in:
Pyrox 2024-06-30 18:10:42 -04:00
parent fd6eb5ec36
commit e12f7ef2da
Signed by: pyrox
GPG key ID: 8CDF3F7CAA53A0F5
2 changed files with 10 additions and 8 deletions

View file

@ -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

View file

@ -1,6 +1,12 @@
{ inputs }:
{
pkgs ? (
import ../.. {
config = { };
overlays = [ ];
}
),
}:
let
pkgs = inputs.nixpkgs;
lib = pkgs.lib;
inherit (lib.attrsets) attrNames filterAttrs;
inherit (lib.lists)