Release notes: - https://github.com/element-hq/element-desktop/releases/tag/v1.11.101 - https://github.com/element-hq/element-desktop/releases/tag/v1.11.102 Changelog: https://github.com/element-hq/element-desktop/compare/v1.11.100...v1.11.102 Updates electron from 35 to 36. Re-introduces the same mechanism for the yarnOfflineCache as #381196, as the problem described in there is back again.
39 lines
681 B
Nix
39 lines
681 B
Nix
{
|
|
stdenvNoCC,
|
|
yarn,
|
|
cacert,
|
|
git,
|
|
version,
|
|
src,
|
|
hash,
|
|
}:
|
|
stdenvNoCC.mkDerivation {
|
|
pname = "element-desktop-yarn-deps";
|
|
inherit version src;
|
|
|
|
nativeBuildInputs = [
|
|
cacert
|
|
yarn
|
|
git
|
|
];
|
|
|
|
dontInstall = true;
|
|
|
|
NODE_EXTRA_CA_CERTS = "${cacert}/etc/ssl/certs/ca-bundle.crt";
|
|
|
|
buildPhase = ''
|
|
export HOME=$(mktemp -d)
|
|
export YARN_ENABLE_TELEMETRY=0
|
|
|
|
yarn install --frozen-lockfile --ignore-platform --skip-integrity-check --ignore-scripts --no-progress --non-interactive
|
|
|
|
mkdir -p $out/node_modules
|
|
cp -r node_modules/* $out/node_modules/
|
|
'';
|
|
|
|
dontPatchShebangs = true;
|
|
|
|
outputHash = hash;
|
|
outputHashMode = "recursive";
|
|
}
|