commit ceb807dc4705ee6eb0afe0a13bd6c471a20e7083
parent d09784356f85e79d1a66e41b255534427421a645
Author: Leah (ctucx) <leah@ctu.cx>
Date: Wed, 12 Jan 2022 16:52:39 +0100
parent d09784356f85e79d1a66e41b255534427421a645
Author: Leah (ctucx) <leah@ctu.cx>
Date: Wed, 12 Jan 2022 16:52:39 +0100
programs/cli/garminexport: add program
2 files changed, 22 insertions(+), 0 deletions(-)
diff --git a/configurations/desktop-sway.nix b/configurations/desktop-sway.nix @@ -60,6 +60,7 @@ ./programs/imv.nix ./programs/cli/ansible.nix + ./programs/cli/garminexport.nix ./programs/sublime-text3.nix ./programs/gimp
diff --git a/configurations/programs/cli/garminexport.nix b/configurations/programs/cli/garminexport.nix @@ -0,0 +1,21 @@ +{ pkgs, lib, ... }: + +let + garminexport = pkgs.python3Packages.buildPythonApplication { + pname = "garminexport"; + version = "1.0"; + + propagatedBuildInputs = with pkgs.python3Packages; [ cloudscraper requests python-dateutil ]; + + src = pkgs.fetchFromGitHub { + owner = "jacobhell"; + repo = "garminexport"; + rev = "5d74c3ac9d925919141c467bac051dc688fbe312"; + sha256 = "1kicabgdzscn3mx3zdkic7flcd32k52zzhxw0c2j67rcqz1pjacs"; + }; + }; +in { + home-manager.users.leah = { + home.packages = [ garminexport ]; + }; +}