summaryrefslogtreecommitdiff
path: root/overlays
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2022-11-10 09:15:50 +0100
committerGregor Kleen <gkleen@yggdrasil.li>2022-11-10 09:15:50 +0100
commit7e97353075b4acee96488d022e456f80f4f903ed (patch)
tree570260991c2ecf972b885b45ea4acd76dde0dbd9 /overlays
parent9d616c8d297db37cc929b711e63f249c3cbe44a5 (diff)
downloadnixos-7e97353075b4acee96488d022e456f80f4f903ed.tar
nixos-7e97353075b4acee96488d022e456f80f4f903ed.tar.gz
nixos-7e97353075b4acee96488d022e456f80f4f903ed.tar.bz2
nixos-7e97353075b4acee96488d022e456f80f4f903ed.tar.xz
nixos-7e97353075b4acee96488d022e456f80f4f903ed.zip
surtr: etebase
Diffstat (limited to 'overlays')
-rw-r--r--overlays/etesync-web.nix41
1 files changed, 41 insertions, 0 deletions
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 @@
1{ final, prev, ... }: {
2 etesync-web = final.mkYarnPackage rec {
3 pname = "etesync-web";
4 version = "0.6.1";
5
6 patches = [
7 (final.fetchpatch {
8 name = "fix-server-url-usage.patch";
9 url = "https://github.com/etesync/etesync-web/commit/7a03f8c69c12527d537ce9cb012a5e86a578aa9d.patch";
10 hash = "sha256-qPwV+K3jiqAXZl2gYMzcNIcuG0raOyX/YjRWd7/5kU8=";
11 })
12 ];
13
14 src = final.fetchFromGitHub {
15 owner = "etesync";
16 repo = "etesync-web";
17 rev = "v${version}";
18 hash = "sha256-ZQpbeEIDj7cB0Y62uIw3qSClvwE4buVKh6ZPMfS53dY=";
19 };
20
21 buildPhase = ''
22 runHook preBuild
23
24 REACT_APP_DEFAULT_API_PATH=https://etesync.yggdrasil.li \
25 NODE_OPTIONS=--openssl-legacy-provider \
26 yarn --offline build
27
28 runHook postBuild
29 '';
30
31 installPhase = ''
32 runHook preInstall
33
34 cp -r deps/etesync-web/build $out
35
36 runHook postInstall
37 '';
38
39 distPhase = "true";
40 };
41}