flake: make an `app` which updates one feed

This commit is contained in:
colin 2023-01-11 10:22:25 +00:00
parent 8115edea8d
commit 91275f3723
1 changed files with 12 additions and 0 deletions

View File

@ -136,6 +136,18 @@
(_: full: full.sane // { inherit (full) sane uninsane-dot-org; })
self.legacyPackages;
apps."x86_64-linux" = {
update-feeds = {
type = "app";
program =
let
pkgs = self.legacyPackages."x86_64-linux";
args = pkgs.feeds."xkcd.com".passthru.updateScript;
script = pkgs.writeShellScript "update-feeds" (builtins.concatStringsSep " " args);
in "${script}";
};
};
templates = {
python-data = {
# initialize with: