flake: make an app
which updates one feed
This commit is contained in:
12
flake.nix
12
flake.nix
@@ -136,6 +136,18 @@
|
|||||||
(_: full: full.sane // { inherit (full) sane uninsane-dot-org; })
|
(_: full: full.sane // { inherit (full) sane uninsane-dot-org; })
|
||||||
self.legacyPackages;
|
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 = {
|
templates = {
|
||||||
python-data = {
|
python-data = {
|
||||||
# initialize with:
|
# initialize with:
|
||||||
|
Reference in New Issue
Block a user