From d6e79c4d07eb809845cd9add8990b4e050172eaa Mon Sep 17 00:00:00 2001 From: colin Date: Fri, 13 Jan 2023 09:00:35 +0000 Subject: [PATCH] feeds: remove the unused `update.nix` file --- pkgs/feeds/template.nix | 3 --- pkgs/feeds/update.nix | 18 ------------------ 2 files changed, 21 deletions(-) delete mode 100644 pkgs/feeds/update.nix diff --git a/pkgs/feeds/template.nix b/pkgs/feeds/template.nix index e9a74efd..154878df 100644 --- a/pkgs/feeds/template.nix +++ b/pkgs/feeds/template.nix @@ -15,9 +15,6 @@ stdenv.mkDerivation { inherit url; }; passthru.updateScript = [ ./update.py url jsonPath ]; - # passthru.updateScript = callPackage ./update.nix { - # inherit url jsonPath; - # }; meta = { description = "metadata about any feeds available at ${feedName}"; homepage = feedName; diff --git a/pkgs/feeds/update.nix b/pkgs/feeds/update.nix deleted file mode 100644 index c4b2f1c5..00000000 --- a/pkgs/feeds/update.nix +++ /dev/null @@ -1,18 +0,0 @@ -{ lib -, curl -, jq -, runtimeShell -, writeScript -# feed-specific args -, jsonPath -, url -}: - -let - apiQuery = "https://feedsearch.dev/api/v1/search?url=${url}"; -in -writeScript "update-feed" '' - #!${runtimeShell} - PATH=${lib.makeBinPath [ curl jq ]} - curl -X GET '${apiQuery}' | jq '.[-1]' > '${jsonPath}' -''