mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-21 22:43:01 +00:00
devmode: move to pkgs/by-name
now one can use `devmode` from anywhere Nixpkgs is available: devmode = pkgs.devmode.override { buildArgs = toString ./.; open = "/index.html"; };
This commit is contained in:
parent
b94f54b7a0
commit
50ff833cd8
@ -5,6 +5,7 @@
|
||||
lib,
|
||||
stdenvNoCC,
|
||||
callPackage,
|
||||
devmode,
|
||||
mkShellNoCC,
|
||||
documentation-highlighter,
|
||||
nixos-render-docs,
|
||||
@ -98,12 +99,12 @@ stdenvNoCC.mkDerivation (
|
||||
|
||||
shell =
|
||||
let
|
||||
devmode = callPackage ../../pkgs/tools/nix/web-devmode.nix {
|
||||
devmode' = devmode.override {
|
||||
buildArgs = "./.";
|
||||
open = "/share/doc/nixpkgs/manual.html";
|
||||
};
|
||||
in
|
||||
mkShellNoCC { packages = [ devmode ]; };
|
||||
mkShellNoCC { packages = [ devmode' ]; };
|
||||
|
||||
tests.manpage-urls = callPackage ../tests/manpage-urls.nix { };
|
||||
};
|
||||
|
@ -6,7 +6,7 @@ let
|
||||
|
||||
common = import ./common.nix;
|
||||
inherit (common) outputPath indexPath;
|
||||
devmode = pkgs.callPackage ../../../pkgs/tools/nix/web-devmode.nix {
|
||||
devmode = pkgs.devmode.override {
|
||||
buildArgs = "../../release.nix -A manualHTML.${builtins.currentSystem}";
|
||||
open = "/${outputPath}/${indexPath}";
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user