From 91275f372392eca42aa74ed0079cacb74f9d3d23 Mon Sep 17 00:00:00 2001 From: colin Date: Wed, 11 Jan 2023 10:22:25 +0000 Subject: [PATCH] flake: make an `app` which updates one feed --- flake.nix | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/flake.nix b/flake.nix index 33df73882..79807bd7f 100644 --- a/flake.nix +++ b/flake.nix @@ -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: