Skip to content

Commit

Permalink
wordpressPackages.plugins.civicrm: init at 5.56.0
Browse files Browse the repository at this point in the history
There are a number of third party wordpress components that cannot be
trivially fetched via wp4nix. As such, we have broken out a file that
contains these derivations and merges them back into wordpressPackages.
  • Loading branch information
urandom2 committed Jan 4, 2023
1 parent aa37158 commit b2266ed
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkgs/servers/web-apps/wordpress/packages/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Licensed under: MIT
# Slightly modified

{ lib, newScope, plugins, themes, languages }:
{ lib, newScope, plugins, themes, languages, callPackage }:

let packages = self:
let
Expand Down Expand Up @@ -82,4 +82,4 @@ let packages = self:
} // lib.mapAttrs (type: pkgs: lib.makeExtensible (_: lib.mapAttrs (pname: data: self.mkOfficialWordpressDerivation { type = lib.removeSuffix "s" type; inherit pname data; }) pkgs)) generatedJson;

# This creates an extensible scope.
in (lib.makeExtensible (_: (lib.makeScope newScope packages))).extend (selfWP: superWP: {})
in lib.recursiveUpdate ((lib.makeExtensible (_: (lib.makeScope newScope packages))).extend (selfWP: superWP: {})) (callPackage ./thirdparty.nix {})
8 changes: 8 additions & 0 deletions pkgs/servers/web-apps/wordpress/packages/thirdparty.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{fetchzip}: {
plugins.civicrm = fetchzip rec {
name = "civicrm";
version = "5.56.0";
url = "https://storage.googleapis.com/${name}/${name}-stable/${version}/${name}-${version}-wordpress.zip";
hash = "sha256-XsNFxVL0LF+OHlsqjjTV41x9ERLwMDq9BnKKP3Px2aI=";
};
}

0 comments on commit b2266ed

Please sign in to comment.