evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / by-name / el / element-call / package.nix
blob784df21863385f3ca8ec20c61785a3f373c8b3f6
1 { lib
2 , stdenv
3 , fetchFromGitHub
4 , fetchYarnDeps
5 , yarnConfigHook
6 , yarnBuildHook
7 , yarnInstallHook
8 , nodejs
9 }:
11 let
12   inherit (stdenv.hostPlatform) system;
13   throwSystem = throw "Unsupported system: ${system}";
14   offlineCacheHash = {
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";
23   version = "0.6.3";
25   src = fetchFromGitHub {
26     owner = "element-hq";
27     repo = "element-call";
28     rev = "v${finalAttrs.version}";
29     hash = "sha256-PyxqUhnlWfcACsoFYrppO7g5e74jI4/xxXBi6oWyWsg=";
30   };
32   offlineCache = fetchYarnDeps {
33     yarnLock = "${finalAttrs.src}/yarn.lock";
34     hash = offlineCacheHash;
35   };
37   nativeBuildInputs = [
38     yarnConfigHook
39     yarnBuildHook
40     yarnInstallHook
41     nodejs
42   ];
44   meta = with lib; {
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";
50   };