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

28 lines
828 B
Nix
Raw Normal View History

2018-03-03 22:24:24 +01:00
{ lib, stdenv, fetchurl, fetchpatch, writeText, conf ? null }:
2017-08-26 20:49:07 +02:00
2018-03-03 22:24:24 +01:00
let configFile = writeText "riot-config.json" conf; in
2017-08-26 20:49:07 +02:00
stdenv.mkDerivation rec {
name= "riot-web-${version}";
version = "0.15.7";
2017-08-26 20:49:07 +02:00
src = fetchurl {
url = "https://github.com/vector-im/riot-web/releases/download/v${version}/riot-v${version}.tar.gz";
sha256 = "09sa2qcmns4b9by3hzmyppc6fi3845vppkal2ylrf2vi9yczb2ch";
2017-08-26 20:49:07 +02:00
};
installPhase = ''
mkdir -p $out/
cp -R . $out/
2018-03-03 22:24:24 +01:00
${lib.optionalString (conf != null) "ln -s ${configFile} $out/config.json"}
2017-08-26 20:49:07 +02:00
'';
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 = [];
};
}