Commit 68e6cc58 authored by Doron Behar's avatar Doron Behar
Browse files

nixos-rebuild: Include manual page in the package

parent ce5e4a6e
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -6,6 +6,7 @@
, nix
, lib
, nixosTests
, installShellFiles
}:
let
  fallback = import ./../../../../nixos/modules/installer/tools/nix-fallback-paths.nix;
@@ -20,6 +21,12 @@ substituteAll {
  nix_i686_linux = fallback.i686-linux;
  nix_aarch64_linux = fallback.aarch64-linux;
  path = lib.makeBinPath [ coreutils gnused gnugrep ];
  nativeBuildInputs = [
    installShellFiles
  ];
  postInstall = ''
    installManPage ${./nixos-rebuild.8}
  '';

  # run some a simple installer tests to make sure nixos-rebuild still works for them
  passthru.tests = {