feeds: remove the unused update.nix
file
This commit is contained in:
parent
380ceaf625
commit
d6e79c4d07
|
@ -15,9 +15,6 @@ stdenv.mkDerivation {
|
||||||
inherit url;
|
inherit url;
|
||||||
};
|
};
|
||||||
passthru.updateScript = [ ./update.py url jsonPath ];
|
passthru.updateScript = [ ./update.py url jsonPath ];
|
||||||
# passthru.updateScript = callPackage ./update.nix {
|
|
||||||
# inherit url jsonPath;
|
|
||||||
# };
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "metadata about any feeds available at ${feedName}";
|
description = "metadata about any feeds available at ${feedName}";
|
||||||
homepage = feedName;
|
homepage = feedName;
|
||||||
|
|
|
@ -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}'
|
|
||||||
''
|
|
Loading…
Reference in New Issue
Block a user