nix-files/pkgs/additional/feeds/template.nix

27 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 = [
"${update-feed}/bin/update.py" url jsonPath
];
meta = {
description = "metadata about any feeds available at ${feedName}";
homepage = feedName;
maintainers = with lib.maintainers; [ colinsane ];
platforms = lib.platforms.all;
};
}