2020-04-22 21:35:20 +02:00
|
|
|
{ fetchFromGitHub
|
|
|
|
, glib
|
|
|
|
, gtk3
|
|
|
|
, lib
|
|
|
|
, rustPlatform
|
|
|
|
, wrapGAppsHook
|
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "fitnesstrax";
|
|
|
|
version = "0.1.0";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "luminescent-dreams";
|
|
|
|
repo = "fitnesstrax";
|
|
|
|
rev = "${pname}-${version}";
|
|
|
|
sha256 = "1k6zhnbs0ggx7q0ig2abcnzprsgrychlpvsh6d36dw6mr8zpfkp7";
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
wrapGAppsHook
|
2020-05-15 15:21:57 +02:00
|
|
|
glib
|
|
|
|
gtk3
|
2020-04-22 21:35:20 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
glib
|
|
|
|
gtk3
|
|
|
|
];
|
|
|
|
|
2021-05-07 13:00:49 +02:00
|
|
|
cargoSha256 = "0dlnlb3hqyh98y916wvdb4rd20az73brs8hqna2lgr7kv1pd77j7";
|
2020-04-22 21:35:20 +02:00
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
mkdir -p $out/share/glib-2.0/schemas
|
|
|
|
cp -r $src/share/* $out/share/
|
|
|
|
glib-compile-schemas $out/share/glib-2.0/schemas
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Privacy-first fitness tracking";
|
|
|
|
homepage = "https://github.com/luminescent-dreams/fitnesstrax";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ savannidgerinel ];
|
|
|
|
};
|
|
|
|
}
|