depot/third_party/nixpkgs/nixos/doc/manual/shell.nix

20 lines
559 B
Nix

let
pkgs = import ../../.. {
config = { };
overlays = [ ];
};
common = import ./common.nix;
inherit (common) outputPath indexPath;
devmode = pkgs.devmode.override {
buildArgs = "../../release.nix -A manualHTML.${builtins.currentSystem}";
open = "/${outputPath}/${indexPath}";
};
nixos-render-docs-redirects = pkgs.writeShellScriptBin "redirects" "${pkgs.lib.getExe pkgs.nixos-render-docs-redirects} --file ${toString ./redirects.json} $@";
in
pkgs.mkShellNoCC {
packages = [
devmode
nixos-render-docs-redirects
];
}