mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-08-25 17:55:21 +00:00
mdbook-rss-feed: tell the difference with the full package (#553380)
This commit is contained in:
12
pkgs/by-name/md/mdbook-rss-feed-full/package.nix
Normal file
12
pkgs/by-name/md/mdbook-rss-feed-full/package.nix
Normal file
@@ -0,0 +1,12 @@
|
||||
{
|
||||
mdbook-rss-feed,
|
||||
...
|
||||
}@args:
|
||||
|
||||
mdbook-rss-feed.override (
|
||||
{
|
||||
withAtom = true;
|
||||
withJsonFeed = true;
|
||||
}
|
||||
// removeAttrs args [ "mdbook-rss-feed" ]
|
||||
)
|
||||
@@ -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;
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user