Merge pull request 'add wordpress plugins' (#92) from add-wordpress-plugins into main
Some checks failed
Hydra wordpress-plugins.syndication-links Hydra build #23686 of nix-packages:x86_64-linux-master:wordpress-plugins.syndication-links
Hydra wordpress-plugins.indieauth Hydra build #23687 of nix-packages:x86_64-linux-master:wordpress-plugins.indieauth
Hydra wordpress-plugins.micropub Hydra build #23688 of nix-packages:x86_64-linux-master:wordpress-plugins.micropub
Hydra wordpress-plugins.wp-super-cache Hydra build #23689 of nix-packages:x86_64-linux-master:wordpress-plugins.wp-super-cache
Hydra wordpress-plugins.indieweb Hydra build #23690 of nix-packages:x86_64-linux-master:wordpress-plugins.indieweb
Hydra wordpress-plugins.indieweb-post-kinds Hydra build #23691 of nix-packages:x86_64-linux-master:wordpress-plugins.indieweb-post-kinds
Hydra wordpress-plugins.webmention Hydra build #23692 of nix-packages:x86_64-linux-master:wordpress-plugins.webmention
Hydra wordpress-plugins.activitypub Hydra build #23693 of nix-packages:x86_64-linux-master:wordpress-plugins.activitypub
Hydra wordpress-plugins.pubsubhubbub Hydra build #23694 of nix-packages:x86_64-linux-master:wordpress-plugins.pubsubhubbub
Hydra wordpress-plugins.jetpack Hydra build #23695 of nix-packages:x86_64-linux-master:wordpress-plugins.jetpack
Hydra wordpress-plugins.google-sitemap-generator Hydra build #23696 of nix-packages:x86_64-linux-master:wordpress-plugins.google-sitemap-generator
ci/woodpecker/cron/update-lockfile Pipeline was successful
ci/woodpecker/cron/update Pipeline failed
Some checks failed
Hydra wordpress-plugins.syndication-links Hydra build #23686 of nix-packages:x86_64-linux-master:wordpress-plugins.syndication-links
Hydra wordpress-plugins.indieauth Hydra build #23687 of nix-packages:x86_64-linux-master:wordpress-plugins.indieauth
Hydra wordpress-plugins.micropub Hydra build #23688 of nix-packages:x86_64-linux-master:wordpress-plugins.micropub
Hydra wordpress-plugins.wp-super-cache Hydra build #23689 of nix-packages:x86_64-linux-master:wordpress-plugins.wp-super-cache
Hydra wordpress-plugins.indieweb Hydra build #23690 of nix-packages:x86_64-linux-master:wordpress-plugins.indieweb
Hydra wordpress-plugins.indieweb-post-kinds Hydra build #23691 of nix-packages:x86_64-linux-master:wordpress-plugins.indieweb-post-kinds
Hydra wordpress-plugins.webmention Hydra build #23692 of nix-packages:x86_64-linux-master:wordpress-plugins.webmention
Hydra wordpress-plugins.activitypub Hydra build #23693 of nix-packages:x86_64-linux-master:wordpress-plugins.activitypub
Hydra wordpress-plugins.pubsubhubbub Hydra build #23694 of nix-packages:x86_64-linux-master:wordpress-plugins.pubsubhubbub
Hydra wordpress-plugins.jetpack Hydra build #23695 of nix-packages:x86_64-linux-master:wordpress-plugins.jetpack
Hydra wordpress-plugins.google-sitemap-generator Hydra build #23696 of nix-packages:x86_64-linux-master:wordpress-plugins.google-sitemap-generator
ci/woodpecker/cron/update-lockfile Pipeline was successful
ci/woodpecker/cron/update Pipeline failed
Reviewed-on: #92
This commit is contained in:
commit
6a42569580
18 changed files with 136 additions and 0 deletions
|
@ -118,4 +118,5 @@ matrix:
|
|||
- python-instagram
|
||||
- element-web
|
||||
- woodpecker-server
|
||||
- wordpress-plugins
|
||||
skip_clone: true
|
||||
|
|
|
@ -68,6 +68,7 @@ in
|
|||
woodpecker-server
|
||||
hydra
|
||||
hydra-unstable
|
||||
wordpress-plugins
|
||||
;
|
||||
}
|
||||
// (
|
||||
|
|
|
@ -111,6 +111,7 @@
|
|||
woodpecker-server
|
||||
hydra
|
||||
hydra-unstable
|
||||
wordpress-plugins
|
||||
;
|
||||
}
|
||||
// (
|
||||
|
|
|
@ -82,6 +82,7 @@ system: self: super: let
|
|||
];
|
||||
});
|
||||
hydra-unstable = self.hydra;
|
||||
wordpress-plugins = self.callPackage ./web/wordpress-plugins {};
|
||||
})
|
||||
riscv-overlay
|
||||
];
|
||||
|
|
7
web/wordpress-plugins/activitypub.json
Normal file
7
web/wordpress-plugins/activitypub.json
Normal file
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
"version": "0.17.0",
|
||||
"pname": "activitypub",
|
||||
"description": "ActivityPub",
|
||||
"url": "https://downloads.wordpress.org/plugin/activitypub.0.17.0.zip",
|
||||
"sha256": "5803f6fa28e243e969a8499da528feefb02f16d1683b95f421d89b6090cad315"
|
||||
}
|
33
web/wordpress-plugins/default.nix
Normal file
33
web/wordpress-plugins/default.nix
Normal file
|
@ -0,0 +1,33 @@
|
|||
{
|
||||
stdenv,
|
||||
fetchurl,
|
||||
lib,
|
||||
unzip
|
||||
}:
|
||||
with builtins;
|
||||
with lib; let
|
||||
plugins = lists.init (splitString "\n" (readFile ./plugins));
|
||||
in
|
||||
listToAttrs (map (name: {
|
||||
inherit name;
|
||||
value = let
|
||||
source = importJSON ./${name}.json;
|
||||
in
|
||||
stdenv.mkDerivation {
|
||||
inherit (source) pname version;
|
||||
src = fetchurl {
|
||||
inherit (source) url sha256;
|
||||
};
|
||||
nativeBuildInputs = [unzip];
|
||||
unpackPhase = ''
|
||||
unzip $src
|
||||
'';
|
||||
installPhase = "mkdir -p $out; cp -R * $out/";
|
||||
meta = {inherit (source) description;};
|
||||
passthru.updateScript =
|
||||
if name == "activitypub"
|
||||
then ./update.sh
|
||||
else [];
|
||||
};
|
||||
})
|
||||
plugins)
|
7
web/wordpress-plugins/google-sitemap-generator.json
Normal file
7
web/wordpress-plugins/google-sitemap-generator.json
Normal file
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
"version": "4.1.10",
|
||||
"pname": "google-sitemap-generator",
|
||||
"description": "Sitemap Generator for Google",
|
||||
"url": "https://downloads.wordpress.org/plugin/google-sitemap-generator.4.1.10.zip",
|
||||
"sha256": "17c0982c3505e7dcb69eef1537524e33ce9e817e82acd89fa57c82226b0175cc"
|
||||
}
|
7
web/wordpress-plugins/indieauth.json
Normal file
7
web/wordpress-plugins/indieauth.json
Normal file
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
"version": "4.2.1",
|
||||
"pname": "indieauth",
|
||||
"description": "IndieAuth",
|
||||
"url": "https://downloads.wordpress.org/plugin/indieauth.4.2.1.zip",
|
||||
"sha256": "ad151c5c25b55b0d139f3d5df8cd3c298fc7cd2d947c602e3681199e95f8c7ab"
|
||||
}
|
7
web/wordpress-plugins/indieweb-post-kinds.json
Normal file
7
web/wordpress-plugins/indieweb-post-kinds.json
Normal file
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
"version": "3.6.4",
|
||||
"pname": "indieweb-post-kinds",
|
||||
"description": "Post Kinds",
|
||||
"url": "https://downloads.wordpress.org/plugin/indieweb-post-kinds.3.6.4.zip",
|
||||
"sha256": "186118759081545322becba1d4a2124de0d0e0cb33a3895aad964d932338fac1"
|
||||
}
|
7
web/wordpress-plugins/indieweb.json
Normal file
7
web/wordpress-plugins/indieweb.json
Normal file
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
"version": "4.0.0",
|
||||
"pname": "indieweb",
|
||||
"description": "IndieWeb",
|
||||
"url": "https://downloads.wordpress.org/plugin/indieweb.4.0.0.zip",
|
||||
"sha256": "0b3d3b0131cd29c24bb52663cba0e56c989a5b95135027a14747c83a46d2a73f"
|
||||
}
|
7
web/wordpress-plugins/jetpack.json
Normal file
7
web/wordpress-plugins/jetpack.json
Normal file
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
"version": "12.0",
|
||||
"pname": "jetpack",
|
||||
"description": "Jetpack – WP Security, Backup, Speed, & Growth",
|
||||
"url": "https://downloads.wordpress.org/plugin/jetpack.12.0.zip",
|
||||
"sha256": "db722fd367ac1a2b4c5c47e213a16e9e06ad1a3e458257f708c55cdc69c51004"
|
||||
}
|
7
web/wordpress-plugins/micropub.json
Normal file
7
web/wordpress-plugins/micropub.json
Normal file
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
"version": "2.3.3",
|
||||
"pname": "micropub",
|
||||
"description": "Micropub",
|
||||
"url": "https://downloads.wordpress.org/plugin/micropub.2.3.3.zip",
|
||||
"sha256": "98fcdb898e5d07d200b7c856f084e031d63098233ad2ecd4e54a87b9827c64b8"
|
||||
}
|
11
web/wordpress-plugins/plugins
Normal file
11
web/wordpress-plugins/plugins
Normal file
|
@ -0,0 +1,11 @@
|
|||
jetpack
|
||||
wp-super-cache
|
||||
google-sitemap-generator
|
||||
indieweb
|
||||
pubsubhubbub
|
||||
indieweb-post-kinds
|
||||
indieauth
|
||||
syndication-links
|
||||
micropub
|
||||
webmention
|
||||
activitypub
|
7
web/wordpress-plugins/pubsubhubbub.json
Normal file
7
web/wordpress-plugins/pubsubhubbub.json
Normal file
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
"version": "3.1.3",
|
||||
"pname": "pubsubhubbub",
|
||||
"description": "WebSub (FKA. PubSubHubbub)",
|
||||
"url": "https://downloads.wordpress.org/plugin/pubsubhubbub.3.1.3.zip",
|
||||
"sha256": "c8fe11b6e194ae08c978bdbda8aec92d80dd98c4102d956b387137ac40ca5663"
|
||||
}
|
7
web/wordpress-plugins/syndication-links.json
Normal file
7
web/wordpress-plugins/syndication-links.json
Normal file
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
"version": "4.4.7",
|
||||
"pname": "syndication-links",
|
||||
"description": "Syndication Links",
|
||||
"url": "https://downloads.wordpress.org/plugin/syndication-links.4.4.7.zip",
|
||||
"sha256": "097632f047a1a290a79cb66b9d28c0675c959c0c4a00576790e2d0b96c223b4b"
|
||||
}
|
11
web/wordpress-plugins/update.sh
Executable file
11
web/wordpress-plugins/update.sh
Executable file
|
@ -0,0 +1,11 @@
|
|||
#!/usr/bin/env nix-shell
|
||||
#!nix-shell -i bash -p curl jq
|
||||
|
||||
|
||||
set -ex
|
||||
|
||||
for plugin in $(cat plugins); do
|
||||
META=$(curl https://api.wordpress.org/plugins/info/1.0/$plugin.json)
|
||||
SHA256=$(curl $(echo $META | jq -r '.versions[.version]') | sha256sum | awk '{print $1}')
|
||||
echo $META | jq '{"version": .version, "pname": .slug, "description": .name, "url": .versions[.version], "sha256": $SHA256}' --arg SHA256 $SHA256 > $plugin.json
|
||||
done
|
7
web/wordpress-plugins/webmention.json
Normal file
7
web/wordpress-plugins/webmention.json
Normal file
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
"version": "5.0.0",
|
||||
"pname": "webmention",
|
||||
"description": "Webmention",
|
||||
"url": "https://downloads.wordpress.org/plugin/webmention.5.0.0.zip",
|
||||
"sha256": "3530a1b516d76f8108bb3adab9022c4293b354f6b6cf3c62b47bacda933086d9"
|
||||
}
|
7
web/wordpress-plugins/wp-super-cache.json
Normal file
7
web/wordpress-plugins/wp-super-cache.json
Normal file
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
"version": "1.9.4",
|
||||
"pname": "wp-super-cache",
|
||||
"description": "WP Super Cache",
|
||||
"url": "https://downloads.wordpress.org/plugin/wp-super-cache.1.9.4.zip",
|
||||
"sha256": "9e9cc68a9a02a886f144157fa318fc90a10017b5b26b10569e075b10909b8d15"
|
||||
}
|
Reference in a new issue