blob: 7e9fe250c092aaf58b582d3da69f4ad38f3e885b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
{ mkYarnPackage, fetchYarnDeps, fetchFromGitHub, lib }:
mkYarnPackage rec {
pname = "matrix.to";
version = "1.2.16";
src = fetchFromGitHub {
owner = "matrix-org";
repo = "matrix.to";
rev = version;
sha256 = "sha256-NeEtRFAjvbW8K5ysm0wMYc1MushF9YT1Nvhucd2fIyE=";
};
offlineCache = fetchYarnDeps {
yarnLock = "${src.outPath}/yarn.lock";
hash = "sha256-KFNU6V9JVa3+O9HOGtHfEGj7nq9TizLiNOiWROCPUHQ=";
};
buildPhase = ''
yarn --offline build
'';
distPhase = "true";
installPhase = ''
mkdir -p $out
cp -r deps/matrix.to/build/* $out
'';
}
|