nixpkgs/pkgs/applications/networking/instant-messengers/riot/riot-web.nix
2019-02-16 09:41:50 +01:00

28 lines
815 B
Nix

{ lib, stdenv, fetchurl, writeText, conf ? null }:
let configFile = writeText "riot-config.json" conf; in
stdenv.mkDerivation rec {
name= "riot-web-${version}";
version = "1.0.1";
src = fetchurl {
url = "https://github.com/vector-im/riot-web/releases/download/v${version}/riot-v${version}.tar.gz";
sha256 = "0p2aj8zj1ynn75g0rjyx7dkhvcmvh3d38wpx0hf4fvg9q13vby85";
};
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 = [];
};
}