cinny: init at 1.6.1

This commit is contained in:
Ashish SHUKLA 2021-12-20 19:34:01 +05:30
parent b0bf5f888d
commit a76dcd5293
No known key found for this signature in database
GPG Key ID: C746CFA9E74FA4B0
2 changed files with 33 additions and 0 deletions

View File

@ -0,0 +1,31 @@
{ lib, stdenv, fetchurl, writeText, jq, conf ? {} }:
let
configOverrides = writeText "cinny-config-overrides.json" (builtins.toJSON conf);
in stdenv.mkDerivation rec {
pname = "cinny";
version = "1.6.1";
src = fetchurl {
url = "https://github.com/ajbura/cinny/releases/download/v${version}/cinny-v${version}.tar.gz";
sha256 = "sha256-RJpLK16bedpqo/JJf3atpiuL5spHJNowomcusjZtEWA=";
};
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;
};
}

View File

@ -2473,6 +2473,8 @@ with pkgs;
cht-sh = callPackage ../tools/misc/cht.sh { };
cinny = callPackage ../applications/networking/instant-messengers/cinny {};
ckbcomp = callPackage ../tools/X11/ckbcomp { };
clac = callPackage ../tools/misc/clac {};