python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / applications / misc / fitnesstrax / default.nix
blobea1dd18d18c8c5fd1da43eb7046f3f9fe5e29c3e
1 { fetchFromGitHub
2 , glib
3 , gtk3
4 , lib
5 , rustPlatform
6 , wrapGAppsHook
7 }:
9 rustPlatform.buildRustPackage rec {
10   pname = "fitnesstrax";
11   version = "0.1.0";
13   src = fetchFromGitHub {
14     owner = "luminescent-dreams";
15     repo = "fitnesstrax";
16     rev = "${pname}-${version}";
17     sha256 = "1k6zhnbs0ggx7q0ig2abcnzprsgrychlpvsh6d36dw6mr8zpfkp7";
18   };
20   nativeBuildInputs = [
21     wrapGAppsHook
22     glib
23     gtk3
24   ];
26   buildInputs = [
27     glib
28     gtk3
29   ];
31   cargoSha256 = "0dlnlb3hqyh98y916wvdb4rd20az73brs8hqna2lgr7kv1pd77j7";
33   postInstall = ''
34     mkdir -p $out/share/glib-2.0/schemas
35     cp -r $src/share/* $out/share/
36     glib-compile-schemas $out/share/glib-2.0/schemas
37   '';
39   meta = with lib; {
40     description = "Privacy-first fitness tracking";
41     homepage = "https://github.com/luminescent-dreams/fitnesstrax";
42     license = licenses.bsd3;
43     maintainers = with maintainers; [ savannidgerinel ];
44   };