nixpkgs/pkgs/applications/networking/instant-messengers/riot/riot-web.nix

31 lines
915 B
Nix
Raw Normal View History

{ lib, stdenv, fetchurl, writeText, conf ? null }:
2017-08-26 18:49:07 +00:00
2019-05-02 22:59:48 +00:00
# Note for maintainers:
# Versions of `riot-web` and `riot-desktop` should be kept in sync.
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-05-30 12:10:55 +00:00
version = "1.2.1";
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-05-30 12:10:55 +00:00
sha256 = "1h96c4yy06ag5lmsbm5h2ws1l7sp4qm5dcchw25k3937fdhwq840";
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/;
2019-05-02 20:41:01 +00:00
maintainers = with stdenv.lib.maintainers; [ bachp pacien ];
2017-08-26 18:49:07 +00:00
license = stdenv.lib.licenses.asl20;
platforms = stdenv.lib.platforms.all;
hydraPlatforms = [];
};
}