easytier: 2.1.1 -> 2.1.2 (#376259)
[NixPkgs.git] / pkgs / by-name / he / health / package.nix
blobe87cda81e63fc97e905d0adf15278c505cdc10df
2   lib,
3   stdenv,
4   fetchFromGitLab,
5   meson,
6   ninja,
7   pkg-config,
8   rustPlatform,
9   rustc,
10   cargo,
11   wrapGAppsHook4,
12   blueprint-compiler,
13   libadwaita,
14   libsecret,
15   tinysparql,
16   darwin,
17   nix-update-script,
20 stdenv.mkDerivation rec {
21   pname = "health";
22   version = "0.95.0";
24   src = fetchFromGitLab {
25     domain = "gitlab.gnome.org";
26     owner = "World";
27     repo = pname;
28     rev = version;
29     hash = "sha256-PrNPprSS98yN8b8yw2G6hzTSaoE65VbsM3q7FVB4mds=";
30   };
32   cargoDeps = rustPlatform.fetchCargoTarball {
33     inherit src;
34     name = "${pname}-${version}";
35     hash = "sha256-8fa3fa+sFi5H+49B5sr2vYPkp9C9s6CcE0zv4xB8gww=";
36   };
38   nativeBuildInputs = [
39     meson
40     ninja
41     pkg-config
42     rustPlatform.cargoSetupHook
43     rustc
44     cargo
45     wrapGAppsHook4
46     blueprint-compiler
47   ];
49   buildInputs =
50     [
51       libadwaita
52       libsecret
53       tinysparql
54     ]
55     ++ lib.optionals stdenv.hostPlatform.isDarwin [
56       darwin.apple_sdk.frameworks.Security
57       darwin.apple_sdk.frameworks.Foundation
58     ];
60   env.NIX_CFLAGS_COMPILE = toString (
61     lib.optionals stdenv.cc.isClang [
62       "-Wno-error=incompatible-function-pointer-types"
63     ]
64   );
66   passthru = {
67     updateScript = nix-update-script { };
68   };
70   meta = with lib; {
71     description = "Health tracking app for the GNOME desktop";
72     homepage = "https://apps.gnome.org/app/dev.Cogitri.Health";
73     license = licenses.gpl3Plus;
74     mainProgram = "dev.Cogitri.Health";
75     maintainers = lib.teams.gnome-circle.members;
76     platforms = platforms.unix;
77   };