mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 03:17:13 +00:00
a31a736b96
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 - 0 of 0 passed binary check by having a zero exit code. - 0 of 0 passed binary check by having the new version present in output. - found 0.15.4 with grep in /nix/store/svsdm27wq2iipppfk9nz8k1n4q6ir9i3-riot-web-0.15.4 - directory tree listing: https://gist.github.com/62108c4884b3db3cad6d53a752a6c775 - du listing: https://gist.github.com/36270da19f3c0390457a50f0c6ecb518
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.15.4";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/vector-im/riot-web/releases/download/v${version}/riot-v${version}.tar.gz";
|
|
sha256 = "1c0b9717xmzvzzxj006hqxafvcpvnnrsifxjnbxxla58jmnwr9v5";
|
|
};
|
|
|
|
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 = [];
|
|
};
|
|
}
|