This repository has been archived on 2024-10-13. You can view files and clone it, but cannot push or open issues or pull requests.
nix-packages/web/wordpress-plugins/default.nix
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
fix unpack
2023-04-25 08:20:07 +01:00

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)