diff options
author | Finn Behrens <me@kloenk.dev> | 2022-07-24 10:22:16 +0200 |
---|---|---|
committer | Alyssa Ross <hi@alyssa.is> | 2022-09-02 18:03:27 +0000 |
commit | bc8f00427aeab7f46fbafda218dfb7bd216777b3 (patch) | |
tree | e39bca7e850fc2e6db2edde8ac0d367d456d46d3 /pkgs/servers | |
parent | 3f9b0f53e48c6866c604183d04871b8122c62972 (diff) |
moodle: 3.11.6 -> 4.0.2
Diffstat (limited to 'pkgs/servers')
-rw-r--r-- | pkgs/servers/web-apps/moodle/default.nix | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/pkgs/servers/web-apps/moodle/default.nix b/pkgs/servers/web-apps/moodle/default.nix index 77f02e7a78cd..5c021430eaf5 100644 --- a/pkgs/servers/web-apps/moodle/default.nix +++ b/pkgs/servers/web-apps/moodle/default.nix @@ -1,8 +1,13 @@ { lib, stdenv, fetchurl, writeText, plugins ? [ ] }: let - version = "3.11.6"; - stableVersion = lib.concatStrings (lib.take 2 (lib.splitVersion version)); + version = "4.0.2"; + + versionParts = lib.take 2 (lib.splitVersion version); + # 4.2 -> 402, 3.11 -> 311 + stableVersion = lib.removePrefix "0" (lib.concatMapStrings + (p: if (lib.toInt p) < 10 then (lib.concatStrings ["0" p]) else p) + versionParts); in stdenv.mkDerivation rec { pname = "moodle"; @@ -10,7 +15,7 @@ in stdenv.mkDerivation rec { src = fetchurl { url = "https://download.moodle.org/stable${stableVersion}/${pname}-${version}.tgz"; - sha256 = "sha256-g3qHYkxiXb18vJ23THUw8ej+s5SgIkJpmjQmmARwQhs="; + sha256 = "sha256-Ouz1U5bMzwzQZiMmVOrx3oWtqyn7GE/oeaTrsXmsBJI="; }; phpConfig = writeText "config.php" '' |