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

28 lines
536 B
Nix
Raw Normal View History

{ lib
, stdenv
, fetchurl
2023-09-24 12:11:28 +00:00
, update-feed
}:
2023-09-24 12:11:28 +00:00
# feed-specific args
{ feedName, jsonPath, url }:
stdenv.mkDerivation {
pname = feedName;
version = "20230112";
src = fetchurl {
inherit url;
};
2023-09-24 12:11:28 +00:00
passthru.updateScript = {
name = "feed-update-script";
command = [ "${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;
};
}