Skip to content

Commit 1407d32

Browse files
committed
feat: update mkdocs to use python 312
1 parent 15f1096 commit 1407d32

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

mkdocs.nix

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@
1010
mkdocs-custom =
1111
pkgsUnstable.runCommand "mkdocs-custom" {
1212
buildInputs = [
13-
pkgsUnstable.python311
14-
pkgsUnstable.python311Packages.mkdocs
15-
pkgsUnstable.python311Packages.mkdocs-material
16-
pkgsUnstable.python311Packages.neoteroi-mkdocs
13+
pkgsUnstable.python312
14+
pkgsUnstable.python312Packages.mkdocs
15+
pkgsUnstable.python312Packages.mkdocs-material
16+
pkgsUnstable.python312Packages.neoteroi-mkdocs
1717
];
1818
meta.mainProgram = "mkdocs";
1919
} ''
@@ -23,15 +23,15 @@
2323
#!${pkgsUnstable.runtimeShell}
2424
set -euo pipefail
2525
export PYTHONPATH=$PYTHONPATH
26-
exec ${pkgsUnstable.python311Packages.mkdocs}/bin/mkdocs "\$@"
26+
exec ${pkgsUnstable.python312Packages.mkdocs}/bin/mkdocs "\$@"
2727
MKDOCS
2828
2929
chmod +x $out/bin/mkdocs
3030
'';
3131
docsPath = "./docs/nixos/modules";
3232
nixosMarkdownDocs = runCommand "nixos-options" {} ''
3333
mkdir $out
34-
${lib.createNixosMarkdownDocs {modulesPath = ./modules;}}
34+
${lib.mkdocs.createNixosMarkdownDocs {modulesPath = ./modules;}}
3535
'';
3636
in
3737
stdenv.mkDerivation {

0 commit comments

Comments
 (0)