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

34 lines
939 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";
2019-09-27 14:36:43 +01:00
version = "1.4.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-09-27 14:36:43 +01:00
sha256 = "1si11hxkfn6sqaq1hddm5vkfrd0pghzwqld1wv4vxlb5jyn32qqk";
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 = [];
};
}