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

34 lines
948 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 {
name= "riot-web-${version}";
2019-07-19 21:13:37 +01:00
version = "1.3.0";
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";
2019-07-19 21:13:37 +01:00
sha256 = "1rppxcc4m00bf73ghgli967wwrri2jdj865623pn8nk4kny4wxyq";
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 ''
2017-08-26 19:49:07 +01:00
mkdir -p $out/
cp -R . $out/
ln -s ${configFile} $out/config.json
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 = [];
};
}