diff --git a/doc/manual/package.nix b/doc/manual/package.nix index 8f5d0dfe1..af6d46a2a 100644 --- a/doc/manual/package.nix +++ b/doc/manual/package.nix @@ -11,6 +11,8 @@ python3, rsync, nix-cli, + changelog-d, + officialRelease, # Configuration Options @@ -44,16 +46,24 @@ mkMesonDerivation (finalAttrs: { ]; # Hack for sake of the dev shell - passthru.externalNativeBuildInputs = [ - meson - ninja - (lib.getBin lowdown-unsandboxed) - mdbook - mdbook-linkcheck - jq - python3 - rsync - ]; + passthru.externalNativeBuildInputs = + [ + meson + ninja + (lib.getBin lowdown-unsandboxed) + mdbook + mdbook-linkcheck + jq + python3 + rsync + changelog-d + ] + ++ lib.optionals (!officialRelease) [ + # When not an official release, we likely have changelog entries that have + # yet to be rendered. + # When released, these are rendered into a committed file to save a dependency. + changelog-d + ]; nativeBuildInputs = finalAttrs.passthru.externalNativeBuildInputs ++ [ nix-cli diff --git a/packaging/components.nix b/packaging/components.nix index 6351ac712..8e3c21b7d 100644 --- a/packaging/components.nix +++ b/packaging/components.nix @@ -211,6 +211,7 @@ in { version = baseVersion + versionSuffix; inherit versionSuffix; + inherit officialRelease; inherit maintainers; inherit filesetToSource;