2021-12-20 14:04:01 +00:00
|
|
|
{ lib, stdenv, fetchurl, writeText, jq, conf ? {} }:
|
|
|
|
|
|
|
|
let
|
|
|
|
configOverrides = writeText "cinny-config-overrides.json" (builtins.toJSON conf);
|
|
|
|
in stdenv.mkDerivation rec {
|
|
|
|
pname = "cinny";
|
2023-03-29 04:42:23 +00:00
|
|
|
version = "2.2.6";
|
2021-12-20 14:04:01 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/ajbura/cinny/releases/download/v${version}/cinny-v${version}.tar.gz";
|
2023-03-29 04:42:23 +00:00
|
|
|
hash = "sha256-AvYM8++PqKmm7CJN5hmg9GSC72IoHX+rRxuT3GflvjU=";
|
2021-12-20 14:04:01 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
|
|
|
|
mkdir -p $out/
|
|
|
|
cp -R . $out/
|
|
|
|
${jq}/bin/jq -s '.[0] * .[1]' "config.json" "${configOverrides}" > "$out/config.json"
|
|
|
|
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Yet another Matrix client for the web";
|
|
|
|
homepage = "https://cinny.in/";
|
|
|
|
maintainers = with maintainers; [ abbe ];
|
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|