mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-11-06 02:06:46 +01:00
31 lines
915 B
Nix
31 lines
915 B
Nix
{ lib, stdenv, fetchurl, writeText, conf ? null }:
|
|
|
|
# Note for maintainers:
|
|
# Versions of `riot-web` and `riot-desktop` should be kept in sync.
|
|
|
|
let configFile = writeText "riot-config.json" conf; in
|
|
stdenv.mkDerivation rec {
|
|
name= "riot-web-${version}";
|
|
version = "1.2.1";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/vector-im/riot-web/releases/download/v${version}/riot-v${version}.tar.gz";
|
|
sha256 = "1h96c4yy06ag5lmsbm5h2ws1l7sp4qm5dcchw25k3937fdhwq840";
|
|
};
|
|
|
|
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 pacien ];
|
|
license = stdenv.lib.licenses.asl20;
|
|
platforms = stdenv.lib.platforms.all;
|
|
hydraPlatforms = [];
|
|
};
|
|
}
|