2024-08-01 21:18:07 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildNpmPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
python3,
|
|
|
|
pkg-config,
|
|
|
|
pixman,
|
|
|
|
cairo,
|
|
|
|
pango,
|
|
|
|
stdenv,
|
|
|
|
darwin,
|
2024-08-14 14:15:25 +00:00
|
|
|
olm,
|
2023-10-21 20:59:43 +00:00
|
|
|
}:
|
2021-12-20 14:04:01 +00:00
|
|
|
|
2023-09-01 19:46:12 +00:00
|
|
|
buildNpmPackage rec {
|
2024-08-01 21:18:07 +00:00
|
|
|
pname = "cinny-unwrapped";
|
2024-10-16 18:26:37 +00:00
|
|
|
version = "4.2.2";
|
2021-12-20 14:04:01 +00:00
|
|
|
|
2023-09-01 19:46:12 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "cinnyapp";
|
|
|
|
repo = "cinny";
|
|
|
|
rev = "v${version}";
|
2024-10-16 18:26:37 +00:00
|
|
|
hash = "sha256-S8vOydjQLL2JK5g8B/PBaDRd+Er3JEKrsYSkDrOdi2k=";
|
2021-12-20 14:04:01 +00:00
|
|
|
};
|
|
|
|
|
2024-10-16 18:26:37 +00:00
|
|
|
npmDepsHash = "sha256-W3XXrhg7BblS0w4jI6oQDNggt7G56AzHQKC9tD0TrvU=";
|
2023-09-01 19:46:12 +00:00
|
|
|
|
2024-05-12 18:21:49 +00:00
|
|
|
# Fix error: no member named 'aligned_alloc' in the global namespace
|
|
|
|
env.NIX_CFLAGS_COMPILE = lib.optionalString (
|
|
|
|
stdenv.hostPlatform.isDarwin && lib.versionOlder stdenv.hostPlatform.darwinSdkVersion "11.0"
|
|
|
|
) "-D_LIBCPP_HAS_NO_LIBRARY_ALIGNED_ALLOCATION=1";
|
|
|
|
|
2023-09-01 19:46:12 +00:00
|
|
|
nativeBuildInputs = [
|
2023-10-21 20:59:43 +00:00
|
|
|
python3
|
|
|
|
pkg-config
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
pixman
|
|
|
|
cairo
|
|
|
|
pango
|
2024-08-01 21:18:07 +00:00
|
|
|
] ++ lib.optionals stdenv.hostPlatform.isDarwin [ darwin.apple_sdk.frameworks.CoreText ];
|
2023-09-01 19:46:12 +00:00
|
|
|
|
2021-12-20 14:04:01 +00:00
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
|
2023-09-01 19:46:12 +00:00
|
|
|
cp -r dist $out
|
2021-12-20 14:04:01 +00:00
|
|
|
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
|
2024-07-25 11:54:24 +00:00
|
|
|
meta = {
|
2021-12-20 14:04:01 +00:00
|
|
|
description = "Yet another Matrix client for the web";
|
|
|
|
homepage = "https://cinny.in/";
|
2024-07-25 11:54:24 +00:00
|
|
|
maintainers = with lib.maintainers; [ abbe ];
|
|
|
|
license = lib.licenses.agpl3Only;
|
|
|
|
platforms = lib.platforms.all;
|
2024-08-14 14:15:25 +00:00
|
|
|
inherit (olm.meta) knownVulnerabilities;
|
2021-12-20 14:04:01 +00:00
|
|
|
};
|
|
|
|
}
|