about summary refs log tree commit diff
path: root/nixpkgs/pkgs/by-name/no/notify-client/package.nix
blob: b909564685c3ff9c94e13d0521fec941d2b40fc1 (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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
{ lib
, stdenv
, fetchFromGitHub
, meson
, ninja
, pkg-config
, rustPlatform
, rustc
, cargo
, capnproto
, blueprint-compiler
, wrapGAppsHook4
, desktop-file-utils
, libadwaita
, gtksourceview5
, openssl
, sqlite
}:

stdenv.mkDerivation rec {
  pname = "notify-client";
  version = "0.1.5";

  src = fetchFromGitHub {
    owner = "ranfdev";
    repo = "notify";
    rev = "v${version}";
    hash = "sha256-0p/XIGaawreGHbMRoHNmUEIxgwEgigtrubeJpndHsug=";
  };

  cargoDeps = rustPlatform.fetchCargoTarball {
    inherit src;
    name = "${pname}-${version}";
    hash = "sha256-uZRAGnydPGwyzAyHIyY+UlT42m+GyEasM0cSa8Bp9Hs=";
  };

  nativeBuildInputs = [
    meson
    ninja
    pkg-config
    rustPlatform.cargoSetupHook
    rustc
    cargo
    capnproto
    blueprint-compiler
    wrapGAppsHook4
    desktop-file-utils
  ];

  buildInputs = [
    libadwaita
    gtksourceview5
    openssl
    sqlite
  ];

  meta = with lib; {
    description = "Ntfy client application to receive everyday's notifications";
    homepage = "https://github.com/ranfdev/Notify";
    license = licenses.gpl3Plus;
    mainProgram = "notify";
    maintainers = with maintainers; [ aleksana ];
    platforms = platforms.linux;
  };
}