2023-01-10 10:53:55 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, callPackage
|
|
|
|
, fetchurl
|
|
|
|
# feed-specific args
|
|
|
|
, feedName
|
|
|
|
, jsonPath
|
|
|
|
, url
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
pname = feedName;
|
|
|
|
version = "20230112";
|
|
|
|
src = fetchurl {
|
|
|
|
inherit url;
|
|
|
|
};
|
2023-01-13 08:59:39 +00:00
|
|
|
passthru.updateScript = [ ./update.py url jsonPath ];
|
2023-01-10 10:53:55 +00:00
|
|
|
meta = {
|
|
|
|
description = "metadata about any feeds available at ${feedName}";
|
|
|
|
homepage = feedName;
|
|
|
|
maintainers = with lib.maintainers; [ colinsane ];
|
|
|
|
platforms = lib.platforms.all;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|