Skip to content

Commit

Permalink
fix deps
Browse files Browse the repository at this point in the history
I realized after looking at http://gtk-rs.org/docs/requirements.html
that you only need gtk3 to build the gtk rust binding.
gtk3 propagates all the other required development libs.
This is why I only put gtk3 and glib.
  • Loading branch information
worldofpeace committed Apr 2, 2020
1 parent 630543f commit a9f12d5
Showing 1 changed file with 8 additions and 16 deletions.
24 changes: 8 additions & 16 deletions pkgs/applications/misc/fitnesstrax/default.nix
@@ -1,17 +1,11 @@
{ pkgs
, atk
, cairo
, fetchFromGitHub
, gdk-pixbuf
{ fetchFromGitHub
, glib
, gnome2
, gtk3
, gtkd
, lib
, rustPlatform
, stdenv
, wrapGAppsHook
}:

rustPlatform.buildRustPackage rec {
name = "fitnesstrax";
version = "0.1.0";
Expand All @@ -23,17 +17,15 @@ rustPlatform.buildRustPackage rec {
sha256 = "1k6zhnbs0ggx7q0ig2abcnzprsgrychlpvsh6d36dw6mr8zpfkp7";
};

nativeBuildInputs = [
wrapGAppsHook
];

buildInputs = [
atk
gnome2.pango
cairo
glib
gdk-pixbuf
gtk3
];

nativeBuildInputs = [ wrapGAppsHook ];

cargoSha256 = "1inzpsj2329svd955axr7ja3gqs7h2kikksdffppkf600mqh4xl4";

postInstall = ''
Expand All @@ -42,10 +34,10 @@ rustPlatform.buildRustPackage rec {
glib-compile-schemas $out/share/glib-2.0/schemas
'';

meta = with stdenv.lib; {
meta = with lib; {
description = "Privacy-first fitness tracking";
homepage = "https://github.com/luminescent-dreams/fitnesstrax";
license = licenses.bsd3;
maintainers = with lib.maintainers; [ savannidgerinel ];
maintainers = with maintainers; [ savannidgerinel ];
};
}

0 comments on commit a9f12d5

Please sign in to comment.