forked from mirrors/nixpkgs
dc2f012215
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/riot-web/versions. These checks were done: - built on NixOS - Warning: no binary found that responded to help or version flags. (This warning appears even if the package isn't expected to have binaries.) - found 0.14.1 with grep in /nix/store/77d4rg2yy4gj8m1mvrw6zqhdi7jv7cg8-riot-web-0.14.1 - directory tree listing: https://gist.github.com/4606f4af0dcfc7ef1ece43dfe4b38abe
28 lines
828 B
Nix
28 lines
828 B
Nix
{ lib, stdenv, fetchurl, fetchpatch, writeText, conf ? null }:
|
|
|
|
let configFile = writeText "riot-config.json" conf; in
|
|
stdenv.mkDerivation rec {
|
|
name= "riot-web-${version}";
|
|
version = "0.14.1";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/vector-im/riot-web/releases/download/v${version}/riot-v${version}.tar.gz";
|
|
sha256 = "08paca7wc135hspkv97bgh2a29hbg8vxv0mrp68mgwscpyrl6vnf";
|
|
};
|
|
|
|
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 = [];
|
|
};
|
|
}
|