Merge pull request #262611 from ashkitten/update-cinny

cinny: 2.2.6 -> 3.0.0
This commit is contained in:
Weijia Wang 2023-10-24 08:24:03 +02:00 committed by GitHub
commit 3a5f01cf1a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,23 +1,46 @@
{ lib, buildNpmPackage, fetchFromGitHub, writeText, jq, conf ? { } }:
{ lib
, buildNpmPackage
, fetchFromGitHub
, writeText
, jq
, python3
, pkg-config
, pixman
, cairo
, pango
, stdenv
, darwin
, conf ? { }
}:
let
configOverrides = writeText "cinny-config-overrides.json" (builtins.toJSON conf);
in
buildNpmPackage rec {
pname = "cinny";
version = "2.2.6";
version = "3.0.0";
src = fetchFromGitHub {
owner = "cinnyapp";
repo = "cinny";
rev = "v${version}";
hash = "sha256-Da/gbq9piKvkIMiamoafcRrqxF7128GXoswk2C43An8=";
hash = "sha256-BFovEmT4RgdzlSYi1p0324PW7+2rvw3n5+jKWTV2FF4=";
};
npmDepsHash = "sha256-3wgB/dQmLtwxbRsk+OUcyfx98vpCvhvseEOCrJIFohY=";
npmDepsHash = "sha256-E+VBs66chBeiK40DZZ1hWTTISKaBN1RA+Uyr1iHqfus=";
nativeBuildInputs = [
jq
python3
pkg-config
];
buildInputs = [
pixman
cairo
pango
] ++ lib.optionals stdenv.isDarwin [
darwin.apple_sdk.frameworks.CoreText
];
installPhase = ''
@ -32,7 +55,7 @@ buildNpmPackage rec {
meta = with lib; {
description = "Yet another Matrix client for the web";
homepage = "https://cinny.in/";
maintainers = with maintainers; [ abbe ];
maintainers = with maintainers; [ abbe ashkitten ];
license = licenses.agpl3Only;
platforms = platforms.all;
};