btrbk: add mainProgram
[NixPkgs.git] / pkgs / by-name / no / notify-client / package.nix
blobb909564685c3ff9c94e13d0521fec941d2b40fc1
1 { lib
2 , stdenv
3 , fetchFromGitHub
4 , meson
5 , ninja
6 , pkg-config
7 , rustPlatform
8 , rustc
9 , cargo
10 , capnproto
11 , blueprint-compiler
12 , wrapGAppsHook4
13 , desktop-file-utils
14 , libadwaita
15 , gtksourceview5
16 , openssl
17 , sqlite
20 stdenv.mkDerivation rec {
21   pname = "notify-client";
22   version = "0.1.5";
24   src = fetchFromGitHub {
25     owner = "ranfdev";
26     repo = "notify";
27     rev = "v${version}";
28     hash = "sha256-0p/XIGaawreGHbMRoHNmUEIxgwEgigtrubeJpndHsug=";
29   };
31   cargoDeps = rustPlatform.fetchCargoTarball {
32     inherit src;
33     name = "${pname}-${version}";
34     hash = "sha256-uZRAGnydPGwyzAyHIyY+UlT42m+GyEasM0cSa8Bp9Hs=";
35   };
37   nativeBuildInputs = [
38     meson
39     ninja
40     pkg-config
41     rustPlatform.cargoSetupHook
42     rustc
43     cargo
44     capnproto
45     blueprint-compiler
46     wrapGAppsHook4
47     desktop-file-utils
48   ];
50   buildInputs = [
51     libadwaita
52     gtksourceview5
53     openssl
54     sqlite
55   ];
57   meta = with lib; {
58     description = "Ntfy client application to receive everyday's notifications";
59     homepage = "https://github.com/ranfdev/Notify";
60     license = licenses.gpl3Plus;
61     mainProgram = "notify";
62     maintainers = with maintainers; [ aleksana ];
63     platforms = platforms.linux;
64   };