element-web: remove the matrix-analytics-events hack

It doesn't seem to be necessary anymore, element-desktop builds fine
without any changes to the lockfile.
This commit is contained in:
Yureka
2022-08-18 17:34:10 +02:00
parent 417254598f
commit 2e4158a468
2 changed files with 1 additions and 8 deletions
@@ -31,14 +31,8 @@ in stdenv.mkDerivation rec {
sha256 = pinData.webSrcHash;
};
# Remove the matrix-analytics-events dependency from the matrix-react-sdk
# dependencies list. It doesn't seem to be necessary since we already are
# installing it individually, and it causes issues with the offline mode.
yarnLock = (runCommand "${pname}-modified-lock" {} ''
sed '/matrix-analytics-events "github/d' ${src}/yarn.lock > "$out"
'');
offlineCache = fetchYarnDeps {
inherit yarnLock;
yarnLock = src + "/yarn.lock";
sha256 = pinData.webYarnHash;
};
@@ -27,7 +27,6 @@ trap 'rm -rf "$web_tmpdir"' EXIT
pushd $web_tmpdir
wget "$web_src/yarn.lock"
sed -i '/matrix-analytics-events "github/d' yarn.lock
web_yarn_hash=$(prefetch-yarn-deps yarn.lock)
popd