nixpkgs-suyu/pkgs/applications/misc/health/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

65 lines
1.2 KiB
Nix
Raw Normal View History

2023-05-09 18:00:35 +02:00
{ lib
, stdenv
, fetchFromGitLab
, meson
, ninja
, pkg-config
, rustPlatform
, rustc
, cargo
, wrapGAppsHook4
, blueprint-compiler
, libadwaita
, libsecret
, tracker
, darwin
}:
stdenv.mkDerivation rec {
pname = "health";
2023-08-06 18:52:01 +02:00
version = "0.95.0";
2023-05-09 18:00:35 +02:00
src = fetchFromGitLab {
domain = "gitlab.gnome.org";
owner = "World";
repo = pname;
rev = version;
2023-08-06 18:52:01 +02:00
hash = "sha256-PrNPprSS98yN8b8yw2G6hzTSaoE65VbsM3q7FVB4mds=";
2023-05-09 18:00:35 +02:00
};
cargoDeps = rustPlatform.fetchCargoTarball {
inherit src;
name = "${pname}-${version}";
2023-08-06 18:52:01 +02:00
hash = "sha256-8fa3fa+sFi5H+49B5sr2vYPkp9C9s6CcE0zv4xB8gww=";
2023-05-09 18:00:35 +02:00
};
nativeBuildInputs = [
meson
ninja
pkg-config
rustPlatform.cargoSetupHook
rustc
cargo
wrapGAppsHook4
blueprint-compiler
];
buildInputs = [
libadwaita
libsecret
tracker
] ++ lib.optionals stdenv.isDarwin [
darwin.apple_sdk.frameworks.Security
darwin.apple_sdk.frameworks.Foundation
];
meta = with lib; {
description = "A health tracking app for the GNOME desktop";
homepage = "https://apps.gnome.org/app/dev.Cogitri.Health";
license = licenses.gpl3Plus;
mainProgram = "dev.Cogitri.Health";
maintainers = with maintainers; [ aleksana ];
platforms = platforms.unix;
};
}