From 7e97353075b4acee96488d022e456f80f4f903ed Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Thu, 10 Nov 2022 09:15:50 +0100 Subject: surtr: etebase --- overlays/etesync-web.nix | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 overlays/etesync-web.nix (limited to 'overlays') diff --git a/overlays/etesync-web.nix b/overlays/etesync-web.nix new file mode 100644 index 00000000..2d4c23ea --- /dev/null +++ b/overlays/etesync-web.nix @@ -0,0 +1,41 @@ +{ final, prev, ... }: { + etesync-web = final.mkYarnPackage rec { + pname = "etesync-web"; + version = "0.6.1"; + + patches = [ + (final.fetchpatch { + name = "fix-server-url-usage.patch"; + url = "https://github.com/etesync/etesync-web/commit/7a03f8c69c12527d537ce9cb012a5e86a578aa9d.patch"; + hash = "sha256-qPwV+K3jiqAXZl2gYMzcNIcuG0raOyX/YjRWd7/5kU8="; + }) + ]; + + src = final.fetchFromGitHub { + owner = "etesync"; + repo = "etesync-web"; + rev = "v${version}"; + hash = "sha256-ZQpbeEIDj7cB0Y62uIw3qSClvwE4buVKh6ZPMfS53dY="; + }; + + buildPhase = '' + runHook preBuild + + REACT_APP_DEFAULT_API_PATH=https://etesync.yggdrasil.li \ + NODE_OPTIONS=--openssl-legacy-provider \ + yarn --offline build + + runHook postBuild + ''; + + installPhase = '' + runHook preInstall + + cp -r deps/etesync-web/build $out + + runHook postInstall + ''; + + distPhase = "true"; + }; +} -- cgit v1.2.3