1 { lib, stdenv, fetchFromGitHub
2 , cmake, perl, pkg-config
3 , openssl, curl, libusb1, protobufc
4 , enableUnsafe ? false }:
8 version = "2020-06-24";
10 src = fetchFromGitHub {
13 rev = "260aff5869fd577d788d86b546399353d9ff72c1";
14 sha256 = "0yd2hs9d03gfvwm1vywpg2qga6x5c74zrj665wf9aa8gmn96hv8r";
17 nativeBuildInputs = [ cmake perl pkg-config ];
18 buildInputs = [ openssl curl libusb1 protobufc ];
20 cmakeFlags = lib.optionals enableUnsafe [ "-Dunsafe=on" ];
23 chmod +x $out/bin/ttbin2mysports
27 homepage = "https://github.com/ryanbinns/ttwatch";
28 description = "Linux TomTom GPS Watch Utilities";
29 maintainers = with maintainers; [ dotlambda ];
30 license = licenses.mit;
31 platforms = with platforms; linux;