2018-07-21 00:44:44 +00:00
|
|
|
{ lib, stdenv, fetchurl, writeText, conf ? null }:
|
2017-08-26 18:49:07 +00:00
|
|
|
|
2018-03-03 21:24:24 +00:00
|
|
|
let configFile = writeText "riot-config.json" conf; in
|
2017-08-26 18:49:07 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name= "riot-web-${version}";
|
2019-03-24 00:14:04 +00:00
|
|
|
version = "1.0.5";
|
2017-08-26 18:49:07 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/vector-im/riot-web/releases/download/v${version}/riot-v${version}.tar.gz";
|
2019-03-24 00:14:04 +00:00
|
|
|
sha256 = "0m0kdnw0pc84yasnybfh9hmkajji0wjk2snv89crdi79s8k572ki";
|
2017-08-26 18:49:07 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/
|
|
|
|
cp -R . $out/
|
2018-03-03 21:24:24 +00:00
|
|
|
${lib.optionalString (conf != null) "ln -s ${configFile} $out/config.json"}
|
2017-08-26 18:49:07 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A glossy Matrix collaboration client for the web";
|
|
|
|
homepage = http://riot.im/;
|
|
|
|
maintainers = with stdenv.lib.maintainers; [ bachp ];
|
|
|
|
license = stdenv.lib.licenses.asl20;
|
|
|
|
platforms = stdenv.lib.platforms.all;
|
|
|
|
hydraPlatforms = [];
|
|
|
|
};
|
|
|
|
}
|