nixpkgs/pkgs/applications/networking/instant-messengers/cinny/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

40 lines
921 B
Nix
Raw Normal View History

{ lib, buildNpmPackage, fetchFromGitHub, writeText, jq, conf ? { } }:
2021-12-20 14:04:01 +00:00
let
configOverrides = writeText "cinny-config-overrides.json" (builtins.toJSON conf);
in
buildNpmPackage rec {
2021-12-20 14:04:01 +00:00
pname = "cinny";
version = "2.2.6";
2021-12-20 14:04:01 +00:00
src = fetchFromGitHub {
owner = "cinnyapp";
repo = "cinny";
rev = "v${version}";
hash = "sha256-Da/gbq9piKvkIMiamoafcRrqxF7128GXoswk2C43An8=";
2021-12-20 14:04:01 +00:00
};
npmDepsHash = "sha256-3wgB/dQmLtwxbRsk+OUcyfx98vpCvhvseEOCrJIFohY=";
nativeBuildInputs = [
jq
];
2021-12-20 14:04:01 +00:00
installPhase = ''
runHook preInstall
cp -r dist $out
jq -s '.[0] * .[1]' "config.json" "${configOverrides}" > "$out/config.json"
2021-12-20 14:04:01 +00:00
runHook postInstall
'';
meta = with lib; {
description = "Yet another Matrix client for the web";
homepage = "https://cinny.in/";
2023-10-22 21:48:18 +00:00
maintainers = with maintainers; [ abbe ashkitten ];
license = licenses.agpl3Only;
2021-12-20 14:04:01 +00:00
platforms = platforms.all;
};
}