Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 53 lines 1.4 kB view raw
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 geist = stdenv.mkDerivation rec { 25 pname = "geist"; 26 version = "2.0.3"; 27 src = fetchzip { 28 inherit version; 29 name = pname; 30 url = "https://github.com/christophery/geist/archive/refs/tags/${version}.zip"; 31 hash = "sha256-c85oRhqu5E5IJlpgqKJRQITur1W7x40obOvHZbPevzU="; 32 }; 33 meta.license = lib.licenses.gpl2Only; 34 }; 35 proton = stdenv.mkDerivation rec { 36 pname = "proton"; 37 version = "1.0.1"; 38 src = fetchzip { 39 inherit version; 40 name = pname; 41 url = "https://github.com/christophery/proton/archive/refs/tags/${version}.zip"; 42 hash = "sha256-JgKyLJ3dRqh1uwlsNuffCOM7LPBigGkLVFqftjFAiP4="; 43 }; 44 installPhase = '' 45 runHook preInstall 46 mkdir -p $out 47 cp -r ./* $out/ 48 runHook postInstall 49 ''; 50 meta.license = lib.licenses.mit; 51 }; 52 }; 53}