about summary refs log tree commit diff
path: root/pkgs/by-name/co/coyim/package.nix
blob: 458ee764f1df41eb0641974f7eed8c32f310d695 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
{ lib
, stdenv
, buildGoModule
, fetchFromGitHub
, pkg-config
, cairo
, gdk-pixbuf
, glib
, adwaita-icon-theme
, wrapGAppsHook3
, gtk3
}:

buildGoModule {
  pname = "coyim";
  version = "0.4.1-unstable-2023-09-21";

  src = fetchFromGitHub {
    owner = "coyim";
    repo = "coyim";
    rev = "3f84daa8c27277543b1b4ad4536dde5100d9df12";
    hash = "sha256-lzhcUSBuAgYwcmdwnqNxKG0P6ZSjWeLS/g/gaF171D4=";
  };

  vendorHash = "sha256-zG7r/Db6XiwKoHRduGj3tEh/KT1hsuBoSGLYaZ+qO0Y=";

  nativeBuildInputs = [ pkg-config wrapGAppsHook3 ];

  buildInputs = [ glib cairo gdk-pixbuf gtk3 adwaita-icon-theme ];

  meta = {
    description = "Safe and secure chat client";
    mainProgram = "coyim";
    homepage = "https://coy.im/";
    license = lib.licenses.gpl3;
    platforms = [ "x86_64-linux" "x86_64-darwin" ];
    broken = stdenv.isDarwin;
  };
}