12 inherit (stdenv.hostPlatform) system;
13 throwSystem = throw "Unsupported system: ${system}";
15 x86_64-linux = "sha256-g4PWB1EstNB7gd/yZyrXf+U8Py8OLeea0gDlEXhInhU=";
16 aarch64-linux = "sha256-g4PWB1EstNB7gd/yZyrXf+U8Py8OLeea0gDlEXhInhU=";
17 x86_64-darwin = "sha256-g4PWB1EstNB7gd/yZyrXf+U8Py8OLeea0gDlEXhInhU=";
18 aarch64-darwin = "sha256-g4PWB1EstNB7gd/yZyrXf+U8Py8OLeea0gDlEXhInhU=";
19 }.${system} or throwSystem;
21 stdenv.mkDerivation (finalAttrs: {
22 pname = "element-call";
25 src = fetchFromGitHub {
27 repo = "element-call";
28 rev = "v${finalAttrs.version}";
29 hash = "sha256-PyxqUhnlWfcACsoFYrppO7g5e74jI4/xxXBi6oWyWsg=";
32 offlineCache = fetchYarnDeps {
33 yarnLock = "${finalAttrs.src}/yarn.lock";
34 hash = offlineCacheHash;
45 homepage = "https://github.com/element-hq/element-call";
46 description = "Group calls powered by Matrix";
47 license = licenses.asl20;
48 maintainers = with maintainers; [ kilimnik ];
49 mainProgram = "element-call";