it currently has to be run manually: ``` ./pkgs/feeds/update.sh <...> ``` it looks like `nix-update` might not really support flakes
18 lines
412 B
Nix
18 lines
412 B
Nix
{ lib
|
|
, pkgs
|
|
}:
|
|
|
|
(lib.makeScope pkgs.newScope (self:
|
|
let
|
|
# TODO: dependency-inject this.
|
|
sane-data = import ../../modules/data { inherit lib; };
|
|
template = self.callPackage ./template.nix;
|
|
in lib.mapAttrs
|
|
(name: feed-details: template {
|
|
feedName = name;
|
|
jsonPath = "modules/data/feeds/sources/${name}/default.json";
|
|
inherit (feed-details) url;
|
|
})
|
|
sane-data.feeds
|
|
))
|