52 lines
1.2 KiB
Nix
52 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
buildNpmPackage,
|
|
fetchFromGitHub,
|
|
nodejs_22,
|
|
}:
|
|
|
|
buildNpmPackage {
|
|
pname = "cinny-unwrapped";
|
|
# Remember to update cinny-desktop when bumping this version.
|
|
version = "4.11.1";
|
|
|
|
# nixpkgs-update: no auto update
|
|
src = fetchFromGitHub {
|
|
owner = "cinnyapp";
|
|
repo = "cinny";
|
|
# rev = "55e83065767645ed7cd510a6f4b5cf4733b000b4";
|
|
tag = "v4.11.1";
|
|
# hash = "sha256-2qxmlj4IK6twDh27R6qMJDmYSfsWoofVGuRHxSP72f0=";
|
|
hash = "sha256-dwI3zNey/ukF3t2fhH/ePf4o4iBDwZyLWMYebPgXmWU=";
|
|
};
|
|
|
|
nodejs = nodejs_22;
|
|
|
|
# npmDepsHash = "sha256-qyQ0SXkPSUES/tavKzPra0Q+ZnU9qHvkTC1JgAjL0o8=";
|
|
# npmDepsHash = "sha256-2Lrd0jAwAH6HkwLHyivqwaEhcpFAIALuno+MchSIfxo=";
|
|
npmDepsHash = "sha256-27WFjb08p09aJRi0S2PvYq3bivEuG5+z2QhFahTSj4Q=";
|
|
|
|
# Skip rebuilding native modules since they're not needed for the web app
|
|
npmRebuildFlags = [
|
|
"--ignore-scripts"
|
|
];
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
cp -r dist $out
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = {
|
|
description = "Yet another Matrix client for the web";
|
|
homepage = "https://cinny.in/";
|
|
maintainers = with lib.maintainers; [
|
|
abbe
|
|
rebmit
|
|
];
|
|
license = lib.licenses.agpl3Only;
|
|
platforms = lib.platforms.all;
|
|
};
|
|
}
|