mirror of
https://github.com/nix-community/home-manager
synced 2024-12-24 02:39:48 +01:00
manual: add nmd as a generation dependency
This is to allow network-less rebuilding of a generation after a garbage collection. Fixes #819
This commit is contained in:
parent
c142e5264d
commit
7c76ae1814
2 changed files with 9 additions and 1 deletions
|
@ -5,6 +5,7 @@ let
|
|||
lib = pkgs.lib;
|
||||
|
||||
nmdSrc = pkgs.fetchFromGitLab {
|
||||
name = "nmd";
|
||||
owner = "rycee";
|
||||
repo = "nmd";
|
||||
rev = "9751ca5ef6eb2ef27470010208d4c0a20e89443d";
|
||||
|
@ -55,6 +56,7 @@ let
|
|||
in
|
||||
|
||||
{
|
||||
inherit nmdSrc;
|
||||
|
||||
options = {
|
||||
json = hmModulesDocs.json.override {
|
||||
|
@ -67,5 +69,4 @@ in
|
|||
manual = {
|
||||
inherit (docs) html htmlOpenTool;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
|
@ -56,6 +56,13 @@ in
|
|||
(mkIf cfg.manpages.enable [ docs.manPages ])
|
||||
(mkIf cfg.json.enable [ docs.options.json ])
|
||||
];
|
||||
|
||||
# Whether a dependency on nmd should be introduced.
|
||||
home.extraBuilderCommands =
|
||||
mkIf (cfg.html.enable || cfg.manpages.enable || cfg.json.enable) ''
|
||||
mkdir $out/lib
|
||||
ln -s ${docs.nmdSrc} $out/lib/nmd
|
||||
'';
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue