040fabf509
ChangeLogs: * https://github.com/vector-im/element-web/releases/tag/v1.7.33 * https://github.com/vector-im/element-web/releases/tag/v1.7.33-rc.1 * https://github.com/vector-im/element-web/releases/tag/v1.7.32 * https://github.com/vector-im/element-web/releases/tag/v1.7.32-rc.1
41 lines
1.2 KiB
Nix
41 lines
1.2 KiB
Nix
{ lib, stdenv, fetchurl, writeText, jq, conf ? {} }:
|
|
|
|
# Note for maintainers:
|
|
# Versions of `element-web` and `element-desktop` should be kept in sync.
|
|
|
|
let
|
|
noPhoningHome = {
|
|
disable_guests = true; # disable automatic guest account registration at matrix.org
|
|
piwik = false; # disable analytics
|
|
};
|
|
configOverrides = writeText "element-config-overrides.json" (builtins.toJSON (noPhoningHome // conf));
|
|
|
|
in stdenv.mkDerivation rec {
|
|
pname = "element-web";
|
|
version = "1.7.33";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/vector-im/element-web/releases/download/v${version}/element-v${version}.tar.gz";
|
|
sha256 = "sha256-MhbXvl+FUCL6D6y2Oa5Kf5ie9fU85wEO/tQe881CD8I=";
|
|
};
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
mkdir -p $out/
|
|
cp -R . $out/
|
|
${jq}/bin/jq -s '.[0] * .[1]' "config.sample.json" "${configOverrides}" > "$out/config.json"
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = {
|
|
description = "A glossy Matrix collaboration client for the web";
|
|
homepage = "https://element.io/";
|
|
changelog = "https://github.com/vector-im/element-web/blob/v${version}/CHANGELOG.md";
|
|
maintainers = lib.teams.matrix.members;
|
|
license = lib.licenses.asl20;
|
|
platforms = lib.platforms.all;
|
|
hydraPlatforms = [];
|
|
};
|
|
}
|