Charlotte 🦝 Delenk
2a1e6429f7
All checks were successful
Hydra wordpress-plugins.activitypub Hydra build #23653 of nix-packages:aarch64-linux-master-pr92:wordpress-plugins.activitypub
Hydra wordpress-plugins.indieweb Hydra build #23654 of nix-packages:aarch64-linux-master-pr92:wordpress-plugins.indieweb
Hydra wordpress-plugins.pubsubhubbub Hydra build #23657 of nix-packages:aarch64-linux-master-pr92:wordpress-plugins.pubsubhubbub
Hydra wordpress-plugins.indieauth Hydra build #23656 of nix-packages:aarch64-linux-master-pr92:wordpress-plugins.indieauth
Hydra wordpress-plugins.webmention Hydra build #23659 of nix-packages:aarch64-linux-master-pr92:wordpress-plugins.webmention
Hydra wordpress-plugins.syndication-links Hydra build #23658 of nix-packages:aarch64-linux-master-pr92:wordpress-plugins.syndication-links
Hydra wordpress-plugins.wp-super-cache Hydra build #23655 of nix-packages:aarch64-linux-master-pr92:wordpress-plugins.wp-super-cache
Hydra wordpress-plugins.micropub Hydra build #23663 of nix-packages:aarch64-linux-master-pr92:wordpress-plugins.micropub
Hydra wordpress-plugins.indieweb-post-kinds Hydra build #23661 of nix-packages:aarch64-linux-master-pr92:wordpress-plugins.indieweb-post-kinds
Hydra wordpress-plugins.google-sitemap-generator Hydra build #23662 of nix-packages:aarch64-linux-master-pr92:wordpress-plugins.google-sitemap-generator
Hydra wordpress-plugins.jetpack Hydra build #23660 of nix-packages:aarch64-linux-master-pr92:wordpress-plugins.jetpack
33 lines
772 B
Nix
33 lines
772 B
Nix
{
|
|
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)
|