12 inherit (stdenv.hostPlatform) system;
13 throwSystem = throw "Unsupported system: ${system}";
15 x86_64-linux = "sha256-mZCnvX6hzkdi/zjPiefcmbyC2kGemjS4w7WTVkyq8W0=";
16 aarch64-linux = "sha256-mZCnvX6hzkdi/zjPiefcmbyC2kGemjS4w7WTVkyq8W0=";
17 x86_64-darwin = "sha256-G4doEnZORJqcl3bWaKZPuQmBeXNXud06nLO12Afr9kM=";
18 aarch64-darwin = "sha256-G4doEnZORJqcl3bWaKZPuQmBeXNXud06nLO12Afr9kM=";
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-GTHM27i716RZk+kDELMg/lYy355/SZoQLXGPQ90M4xg=";
32 patches = [ ./name.patch ];
34 offlineCache = fetchYarnDeps {
35 yarnLock = "${finalAttrs.src}/yarn.lock";
36 hash = offlineCacheHash;
43 npmHooks.npmInstallHook
45 # From some reason causes the build to fail due to dependencies not available
50 homepage = "https://github.com/element-hq/element-call";
51 description = "Group calls powered by Matrix";
52 license = licenses.asl20;
53 maintainers = with maintainers; [ kilimnik ];
54 mainProgram = "element-call";