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

27 lines
488 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;
};
2024-06-13 01:58:41 +00:00
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;
};
}