mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-22 12:53:54 +00:00
Merge pull request #262611 from ashkitten/update-cinny
cinny: 2.2.6 -> 3.0.0
This commit is contained in:
commit
3a5f01cf1a
@ -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;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user