lasuite-docs: 3.4.2 -> 3.6.0 (#442744)

authored by isabelroses.com and committed by GitHub bad8bf4b a171774a

+9 -38
+3 -3
pkgs/by-name/la/lasuite-docs-collaboration-server/package.nix
··· 13 14 stdenv.mkDerivation rec { 15 pname = "lasuite-docs-collaboration-server"; 16 - version = "3.4.2"; 17 18 src = fetchFromGitHub { 19 owner = "suitenumerique"; 20 repo = "docs"; 21 tag = "v${version}"; 22 - hash = "sha256-uo49y+tJXdc8gfFIHSIEk0DEowMsHWA64IxlHpFHUTU="; 23 }; 24 25 sourceRoot = "source/src/frontend"; 26 27 offlineCache = fetchYarnDeps { 28 yarnLock = "${src}/src/frontend/yarn.lock"; 29 - hash = "sha256-07zsggGQFX/Wx/fxs1f0w01HHx7Z2BG5d3PIBlX2SVM="; 30 }; 31 32 nativeBuildInputs = [
··· 13 14 stdenv.mkDerivation rec { 15 pname = "lasuite-docs-collaboration-server"; 16 + version = "3.6.0"; 17 18 src = fetchFromGitHub { 19 owner = "suitenumerique"; 20 repo = "docs"; 21 tag = "v${version}"; 22 + hash = "sha256-8bD+rBEN0GEQz3tiPEQYmf/mpijPefFmQchGhYkVBVY="; 23 }; 24 25 sourceRoot = "source/src/frontend"; 26 27 offlineCache = fetchYarnDeps { 28 yarnLock = "${src}/src/frontend/yarn.lock"; 29 + hash = "sha256-b4JBjJUB1i9jYSy+RFkXKmq6rzp28xHLdPNSH0QO1Ek="; 30 }; 31 32 nativeBuildInputs = [
+3 -3
pkgs/by-name/la/lasuite-docs-frontend/package.nix
··· 12 13 stdenv.mkDerivation rec { 14 pname = "lasuite-docs-frontend"; 15 - version = "3.4.2"; 16 17 src = fetchFromGitHub { 18 owner = "suitenumerique"; 19 repo = "docs"; 20 tag = "v${version}"; 21 - hash = "sha256-uo49y+tJXdc8gfFIHSIEk0DEowMsHWA64IxlHpFHUTU="; 22 }; 23 24 sourceRoot = "source/src/frontend"; 25 26 offlineCache = fetchYarnDeps { 27 yarnLock = "${src}/src/frontend/yarn.lock"; 28 - hash = "sha256-07zsggGQFX/Wx/fxs1f0w01HHx7Z2BG5d3PIBlX2SVM="; 29 }; 30 31 nativeBuildInputs = [
··· 12 13 stdenv.mkDerivation rec { 14 pname = "lasuite-docs-frontend"; 15 + version = "3.6.0"; 16 17 src = fetchFromGitHub { 18 owner = "suitenumerique"; 19 repo = "docs"; 20 tag = "v${version}"; 21 + hash = "sha256-8bD+rBEN0GEQz3tiPEQYmf/mpijPefFmQchGhYkVBVY="; 22 }; 23 24 sourceRoot = "source/src/frontend"; 25 26 offlineCache = fetchYarnDeps { 27 yarnLock = "${src}/src/frontend/yarn.lock"; 28 + hash = "sha256-b4JBjJUB1i9jYSy+RFkXKmq6rzp28xHLdPNSH0QO1Ek="; 29 }; 30 31 nativeBuildInputs = [
-26
pkgs/by-name/la/lasuite-docs/mjml-mail-dir.patch
··· 1 - diff --git a/src/mail/bin/html-to-plain-text b/src/mail/bin/html-to-plain-text 2 - index ced0c13d..bcdef288 100755 3 - --- a/src/mail/bin/html-to-plain-text 4 - +++ b/src/mail/bin/html-to-plain-text 5 - @@ -1,7 +1,7 @@ 6 - #!/usr/bin/env bash 7 - set -eo pipefail 8 - # Run html-to-text to convert all html files to text files 9 - -DIR_MAILS="../backend/core/templates/mail/" 10 - +DIR_MAILS="${DIR_MAILS:-../backend/core/templates/mail}/" 11 - 12 - if [ ! -d "${DIR_MAILS}" ]; then 13 - mkdir -p "${DIR_MAILS}"; 14 - diff --git a/src/mail/bin/mjml-to-html b/src/mail/bin/mjml-to-html 15 - index fb5710b0..15e2fc7d 100755 16 - --- a/src/mail/bin/mjml-to-html 17 - +++ b/src/mail/bin/mjml-to-html 18 - @@ -1,7 +1,7 @@ 19 - #!/usr/bin/env bash 20 - 21 - # Run mjml command to convert all mjml templates to html files 22 - -DIR_MAILS="../backend/core/templates/mail/html/" 23 - +DIR_MAILS="${DIR_MAILS:-../backend/core/templates/mail}/html/" 24 - 25 - if [ ! -d "${DIR_MAILS}" ]; then 26 - mkdir -p "${DIR_MAILS}";
···
+3 -6
pkgs/by-name/la/lasuite-docs/package.nix
··· 26 }; 27 }; 28 29 - version = "3.4.2"; 30 src = fetchFromGitHub { 31 owner = "suitenumerique"; 32 repo = "docs"; 33 tag = "v${version}"; 34 - hash = "sha256-uo49y+tJXdc8gfFIHSIEk0DEowMsHWA64IxlHpFHUTU="; 35 }; 36 37 mail-templates = stdenv.mkDerivation { ··· 40 41 sourceRoot = "source/src/mail"; 42 43 - patches = [ ./mjml-mail-dir.patch ]; 44 - patchFlags = [ "-p3" ]; 45 - 46 - env.DIR_MAILS = "${placeholder "out"}"; 47 48 offlineCache = fetchYarnDeps { 49 yarnLock = "${src}/src/mail/yarn.lock";
··· 26 }; 27 }; 28 29 + version = "3.6.0"; 30 src = fetchFromGitHub { 31 owner = "suitenumerique"; 32 repo = "docs"; 33 tag = "v${version}"; 34 + hash = "sha256-8bD+rBEN0GEQz3tiPEQYmf/mpijPefFmQchGhYkVBVY="; 35 }; 36 37 mail-templates = stdenv.mkDerivation { ··· 40 41 sourceRoot = "source/src/mail"; 42 43 + env.DOCS_DIR_MAILS = "${placeholder "out"}"; 44 45 offlineCache = fetchYarnDeps { 46 yarnLock = "${src}/src/mail/yarn.lock";