mdbook-rss-feed: tell the difference with the full package (#553380)

This commit is contained in:
dram
2026-08-18 13:45:46 +00:00
committed by GitHub
3 changed files with 20 additions and 7 deletions

View File

@@ -0,0 +1,12 @@
{
mdbook-rss-feed,
...
}@args:
mdbook-rss-feed.override (
{
withAtom = true;
withJsonFeed = true;
}
// removeAttrs args [ "mdbook-rss-feed" ]
)

View File

@@ -7,6 +7,11 @@
withJsonFeed ? false,
}:
let
buildFeatures = lib.optional withAtom "atom" ++ lib.optional withJsonFeed "json-feed";
hasOptionalFeatures = buildFeatures != [ ];
withOptionalFeatures = lib.optionalString hasOptionalFeatures " with ${lib.strings.concatStringsSep " and " buildFeatures} features";
in
rustPlatform.buildRustPackage (finalAttrs: {
pname = "mdbook-rss-feed";
version = "1.8.1";
@@ -21,12 +26,13 @@ rustPlatform.buildRustPackage (finalAttrs: {
cargoHash = "sha256-UkoNcwEq2Ga3PEF04Xly++VdBekdCBKSHggIGXjTMXU=";
buildFeatures = lib.optional withAtom [ "atom" ] ++ lib.optional withJsonFeed [ "json-feed" ];
inherit buildFeatures;
passthru.updateScript = nix-update-script { };
meta = {
description = "mdBook preprocessor that generates a full-content RSS 2.0 feed";
description =
"mdBook preprocessor that generates a full-content RSS 2.0 feed" + withOptionalFeatures;
homepage = "https://github.com/saylesss88/mdbook-rss-feed";
changelog = "https://github.com/saylesss88/mdbook-rss-feed/blob/${finalAttrs.src.rev}/CHANGELOG.md";
license = lib.licenses.asl20;

View File

@@ -7326,11 +7326,6 @@ with pkgs;
inherit (mailmanPackages) mailman mailman-hyperkitty;
mailman-web = mailmanPackages.web;
mdbook-rss-feed-full = mdbook-rss-feed.override {
withAtom = true;
withJsonFeed = true;
};
micro-full = micro.wrapper.override {
extraPackages = [
wl-clipboard