mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 03:17:13 +00:00
2e6bf42a22
There ver very many conflicts, basically all due to name -> pname+version. Fortunately, almost everything was auto-resolved by kdiff3, and for now I just fixed up a couple evaluation problems, as verified by the tarball job. There might be some fallback to these conflicts, but I believe it should be minimal. Hydra nixpkgs: ?compare=1538299
34 lines
939 B
Nix
34 lines
939 B
Nix
{ lib, stdenv, fetchurl, writeText, conf ? null }:
|
|
|
|
# Note for maintainers:
|
|
# Versions of `riot-web` and `riot-desktop` should be kept in sync.
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "riot-web";
|
|
version = "1.3.3";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/vector-im/riot-web/releases/download/v${version}/riot-v${version}.tar.gz";
|
|
sha256 = "1n5h7q3h0akw09p4z7nwprxsa8jnmwbvwn2npq7zz62ccasb4fv9";
|
|
};
|
|
|
|
installPhase = let
|
|
configFile = if (conf != null)
|
|
then writeText "riot-config.json" conf
|
|
else "$out/config.sample.json";
|
|
in ''
|
|
mkdir -p $out/
|
|
cp -R . $out/
|
|
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 = [];
|
|
};
|
|
}
|