feeds: remove the unused update.nix file

This commit is contained in:
colin 2023-01-13 09:00:35 +00:00
parent 380ceaf625
commit d6e79c4d07
2 changed files with 0 additions and 21 deletions

View File

@ -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;

View File

@ -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}'
''