3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/networking/instant-messengers/riot/riot-web.nix

38 lines
988 B
Nix
Raw Normal View History

{ lib, stdenv, fetchurl, writeText, conf ? null }:
2017-08-26 19:49:07 +01:00
2019-05-02 23:59:48 +01:00
# Note for maintainers:
# Versions of `riot-web` and `riot-desktop` should be kept in sync.
2017-08-26 19:49:07 +01:00
stdenv.mkDerivation rec {
pname = "riot-web";
2020-02-01 13:09:04 +00:00
version = "1.5.8";
2017-08-26 19:49:07 +01:00
src = fetchurl {
url = "https://github.com/vector-im/riot-web/releases/download/v${version}/riot-v${version}.tar.gz";
2020-02-01 13:09:04 +00:00
sha256 = "112zjlmxy2s8qcd227laf1lfvbbwwcipn51xb779hy2dci48kpkx";
2017-08-26 19:49:07 +01:00
};
installPhase = let
configFile = if (conf != null)
then writeText "riot-config.json" conf
else "$out/config.sample.json";
in ''
2019-12-10 14:54:05 +00:00
runHook preInstall
2017-08-26 19:49:07 +01:00
mkdir -p $out/
cp -R . $out/
ln -s ${configFile} $out/config.json
2019-12-10 14:54:05 +00:00
runHook postInstall
2017-08-26 19:49:07 +01:00
'';
meta = {
description = "A glossy Matrix collaboration client for the web";
homepage = http://riot.im/;
2019-05-02 21:41:01 +01:00
maintainers = with stdenv.lib.maintainers; [ bachp pacien ];
2017-08-26 19:49:07 +01:00
license = stdenv.lib.licenses.asl20;
platforms = stdenv.lib.platforms.all;
hydraPlatforms = [];
};
}