28 lines
828 B
Nix
28 lines
828 B
Nix
{ lib, stdenv, fetchurl, fetchpatch, writeText, conf ? null }:
|
|
|
|
let configFile = writeText "riot-config.json" conf; in
|
|
stdenv.mkDerivation rec {
|
|
name= "riot-web-${version}";
|
|
version = "0.15.3";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/vector-im/riot-web/releases/download/v${version}/riot-v${version}.tar.gz";
|
|
sha256 = "0vh2zjg0vaczh5mfyykb2kk9d8mi07dkr8zy60bpqf0y1lfamv0a";
|
|
};
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/
|
|
cp -R . $out/
|
|
${lib.optionalString (conf != null) "ln -s ${configFile} $out/config.json"}
|
|
'';
|
|
|
|
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 = [];
|
|
};
|
|
}
|