Files
nix-files/pkgs/by-name/feeds/template.nix

28 lines
488 B
Nix

{
lib,
stdenv,
fetchurl,
update-feed,
}:
# feed-specific args
{ feedName, jsonPath, url }:
stdenv.mkDerivation {
pname = feedName;
version = "20230112";
src = fetchurl {
inherit url;
};
passthru.updateScript = [
(lib.getExe update-feed) url jsonPath
];
meta = {
description = "metadata about any feeds available at ${feedName}";
homepage = feedName;
maintainers = with lib.maintainers; [ colinsane ];
platforms = lib.platforms.all;
};
}