parent
b0bf5f888d
commit
a76dcd5293
@ -0,0 +1,31 @@ |
||||
{ lib, stdenv, fetchurl, writeText, jq, conf ? {} }: |
||||
|
||||
let |
||||
configOverrides = writeText "cinny-config-overrides.json" (builtins.toJSON conf); |
||||
in stdenv.mkDerivation rec { |
||||
pname = "cinny"; |
||||
version = "1.6.1"; |
||||
|
||||
src = fetchurl { |
||||
url = "https://github.com/ajbura/cinny/releases/download/v${version}/cinny-v${version}.tar.gz"; |
||||
sha256 = "sha256-RJpLK16bedpqo/JJf3atpiuL5spHJNowomcusjZtEWA="; |
||||
}; |
||||
|
||||
installPhase = '' |
||||
runHook preInstall |
||||
|
||||
mkdir -p $out/ |
||||
cp -R . $out/ |
||||
${jq}/bin/jq -s '.[0] * .[1]' "config.json" "${configOverrides}" > "$out/config.json" |
||||
|
||||
runHook postInstall |
||||
''; |
||||
|
||||
meta = with lib; { |
||||
description = "Yet another Matrix client for the web"; |
||||
homepage = "https://cinny.in/"; |
||||
maintainers = with maintainers; [ abbe ]; |
||||
license = licenses.mit; |
||||
platforms = platforms.all; |
||||
}; |
||||
} |
Loading…
Reference in new issue