mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-30 17:43:42 +00:00
b94f54b7a0
the `devmode` helper made for the Nixpkgs/NixOS manual was exposed wrapped in `mkShell`, which made it impossible to reuse. this change strips that wrapper and reproduces it at the call site. now one can use `devmode` from anywhere Nixpkgs is available: devmode = pkgs.callPackage "${pkgs.path}/pkgs/tools/nix/web-devmode.nix" { buildArgs = toString ./.; open = "/index.html"; };
17 lines
393 B
Nix
17 lines
393 B
Nix
let
|
|
pkgs = import ../../.. {
|
|
config = { };
|
|
overlays = [ ];
|
|
};
|
|
|
|
common = import ./common.nix;
|
|
inherit (common) outputPath indexPath;
|
|
devmode = pkgs.callPackage ../../../pkgs/tools/nix/web-devmode.nix {
|
|
buildArgs = "../../release.nix -A manualHTML.${builtins.currentSystem}";
|
|
open = "/${outputPath}/${indexPath}";
|
|
};
|
|
in
|
|
pkgs.mkShellNoCC {
|
|
packages = [ devmode ];
|
|
}
|