mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 23:23:07 +00:00
edb43b6b60
Release Notes: https://github.com/cinnyapp/cinny/releases/tag/v2.2.5 https://github.com/cinnyapp/cinny/releases/tag/v2.2.6 Security: CVE-2023-28427
32 lines
834 B
Nix
32 lines
834 B
Nix
{ lib, stdenv, fetchurl, writeText, jq, conf ? {} }:
|
|
|
|
let
|
|
configOverrides = writeText "cinny-config-overrides.json" (builtins.toJSON conf);
|
|
in stdenv.mkDerivation rec {
|
|
pname = "cinny";
|
|
version = "2.2.6";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/ajbura/cinny/releases/download/v${version}/cinny-v${version}.tar.gz";
|
|
hash = "sha256-AvYM8++PqKmm7CJN5hmg9GSC72IoHX+rRxuT3GflvjU=";
|
|
};
|
|
|
|
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;
|
|
};
|
|
}
|