anvil-editor: init at 0.4
[NixPkgs.git] / pkgs / applications / networking / instant-messengers / signal-desktop / signal-desktop-darwin.nix
blobff5137debe396634e8ee11143ae5dcde55c312b0
2   stdenv,
3   lib,
4   fetchurl,
5   _7zz,
6 }:
7 stdenv.mkDerivation (finalAttrs: {
8   pname = "signal-desktop";
9   version = "7.29.0";
11   src = fetchurl {
12     url = "https://updates.signal.org/desktop/signal-desktop-mac-universal-${finalAttrs.version}.dmg";
13     hash = "sha256-R/NYPb7bvLbyDYntw2K75SC1/sqNO7HAJ3QUwGThvUg=";
14   };
15   sourceRoot = ".";
17   nativeBuildInputs = [ _7zz ];
19   dontConfigure = true;
20   dontBuild = true;
21   installPhase = ''
22     runHook preInstall
24     mkdir -p $out/Applications
25     cp -r Signal.app $out/Applications
27     runHook postInstall
28   '';
30   passthru = {
31     updateScript.command = [ ./update.sh ];
32   };
34   meta = {
35     description = "Private, simple, and secure messenger";
36     longDescription = ''
37       Signal Desktop is an Electron application that links with your
38       "Signal Android" or "Signal iOS" app.
39     '';
40     homepage = "https://signal.org/";
41     downloadPage = "https://signal.org/download/macos/";
42     changelog = "https://github.com/signalapp/Signal-Desktop/releases/tag/v${finalAttrs.version}";
43     license = with lib.licenses; [
44       agpl3Only
46       # Various npm packages
47       free
49       # has non-redistributable Apple emoji packaged, see main derivation
50       unfree
51     ];
52     maintainers = with lib.maintainers; [ nickhu ];
53     platforms = [
54       "x86_64-linux"
55       "aarch64-linux"
56       "x86_64-darwin"
57       "aarch64-darwin"
58     ];
59     sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];
60   };