From f36219528783635cd3f229030bd79f01eb4508b2 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Wed, 9 Apr 2025 03:30:35 +0200 Subject: [PATCH] nixos/doc: update python39Packages reference The packages set is now gone and pytorch has been renamed to just torch. --- nixos/doc/manual/development/option-declarations.section.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nixos/doc/manual/development/option-declarations.section.md b/nixos/doc/manual/development/option-declarations.section.md index 112c4f054f2a..efccba3da37c 100644 --- a/nixos/doc/manual/development/option-declarations.section.md +++ b/nixos/doc/manual/development/option-declarations.section.md @@ -158,14 +158,14 @@ lib.mkOption { ::: {#ex-options-declarations-util-mkPackageOption-extraDescription .example} ### `mkPackageOption` with additional description text ```nix -mkPackageOption pkgs [ "python39Packages" "pytorch" ] { +mkPackageOption pkgs [ "python312Packages" "torch" ] { extraDescription = "This is an example and doesn't actually do anything."; } # is like lib.mkOption { type = lib.types.package; - default = pkgs.python39Packages.pytorch; - defaultText = lib.literalExpression "pkgs.python39Packages.pytorch"; + default = pkgs.python312Packages.torch; + defaultText = lib.literalExpression "pkgs.python312Packages.torch"; description = "The pytorch package to use. This is an example and doesn't actually do anything."; } ```