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:
Valentin Gagarin 2024-11-08 19:06:07 +01:00
parent b94f54b7a0
commit 50ff833cd8
3 changed files with 4 additions and 3 deletions

View File

@ -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 { };
};

View File

@ -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}";
};