nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 fetchzip,
3 stdenv,
4 lib,
5}:
6{
7 plugins.civicrm = stdenv.mkDerivation rec {
8 pname = "civicrm";
9 version = "6.2.0";
10 src = fetchzip {
11 inherit version;
12 name = pname;
13 url = "https://download.civicrm.org/${pname}-${version}-wordpress.zip";
14 hash = "sha256-Bx1rixRbqJsiMrIIkzTGeqLIc5raiNoUVTsoxZ6q9uU=";
15 };
16 installPhase = ''
17 runHook preInstall
18 cp -r ./ -T $out
19 runHook postInstall
20 '';
21 meta.license = lib.licenses.agpl3Only;
22 };
23 themes = {
24 proton = stdenv.mkDerivation rec {
25 pname = "proton";
26 version = "1.0.1";
27 src = fetchzip {
28 inherit version;
29 name = pname;
30 url = "https://github.com/christophery/proton/archive/refs/tags/${version}.zip";
31 hash = "sha256-JgKyLJ3dRqh1uwlsNuffCOM7LPBigGkLVFqftjFAiP4=";
32 };
33 installPhase = ''
34 runHook preInstall
35 mkdir -p $out
36 cp -r ./* $out/
37 runHook postInstall
38 '';
39 meta.license = lib.licenses.mit;
40 };
41 };
42}