about summary refs log tree commit diff
path: root/doc
diff options
context:
space:
mode:
authorPhilip Taron2024-07-26 11:47:32 -0700
committerPhilip Taron2024-07-26 13:46:12 -0700
commiteaa78111043c898f26e870668593299526ae5db1 (patch)
tree2026fd06c31018cc732a2e97e0fb352a292377df /doc
parentb5dc82844f7d0bb2c9c38b9b696de68e6be23d8d (diff)
nixpkgs-manual: move shell to package
Diffstat (limited to 'doc')
-rw-r--r--doc/doc-support/package.nix5
-rw-r--r--doc/shell.nix8
2 files changed, 6 insertions, 7 deletions
diff --git a/doc/doc-support/package.nix b/doc/doc-support/package.nix
index c0213bad4c27..ec9f524df436 100644
--- a/doc/doc-support/package.nix
+++ b/doc/doc-support/package.nix
@@ -99,6 +99,11 @@ stdenvNoCC.mkDerivation (
 
       pythonInterpreterTable = callPackage ./python-interpreter-table.nix { };
 
+      shell = callPackage ../../pkgs/tools/nix/web-devmode.nix {
+        buildArgs = "./.";
+        open = "/${common.outputPath}/${common.indexPath}";
+      };
+
       tests.manpage-urls = callPackage ../tests/manpage-urls.nix { };
     };
   }
diff --git a/doc/shell.nix b/doc/shell.nix
index d0d05d7ee4c4..3aad697742b2 100644
--- a/doc/shell.nix
+++ b/doc/shell.nix
@@ -3,11 +3,5 @@ let
     config = { };
     overlays = [ ];
   };
-
-  common = import ./common.nix;
-  inherit (common) outputPath indexPath;
 in
-pkgs.callPackage ../pkgs/tools/nix/web-devmode.nix {
-  buildArgs = "./.";
-  open = "/${outputPath}/${indexPath}";
-}
+pkgs.nixpkgs-manual.shell