2020-06-14 12:39:40 +01:00
|
|
|
{ stdenv, fetchFromGitHub
|
|
|
|
, cmake, perl, pkgconfig
|
|
|
|
, openssl, curl, libusb1, protobufc
|
2018-02-01 09:27:50 +00:00
|
|
|
, enableUnsafe ? false }:
|
2017-09-21 15:02:38 +01:00
|
|
|
|
2019-08-13 22:52:01 +01:00
|
|
|
stdenv.mkDerivation {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "ttwatch";
|
2020-06-14 12:39:40 +01:00
|
|
|
version = "2020-02-05";
|
2017-09-21 15:02:38 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ryanbinns";
|
|
|
|
repo = "ttwatch";
|
2020-06-14 12:39:40 +01:00
|
|
|
rev = "bfdf1372515574e1fb3871dc1039f8d8a5dbdada";
|
|
|
|
sha256 = "07nd4dbkchxy8js1h1f6pzn63pls2afww97wyiiw6zid43mpqyg4";
|
2017-09-21 15:02:38 +01:00
|
|
|
};
|
|
|
|
|
2020-06-14 12:39:40 +01:00
|
|
|
nativeBuildInputs = [ cmake perl pkgconfig ];
|
|
|
|
buildInputs = [ openssl curl libusb1 protobufc ];
|
2017-09-21 15:02:38 +01:00
|
|
|
|
2018-02-01 09:27:50 +00:00
|
|
|
cmakeFlags = stdenv.lib.optional enableUnsafe [ "-Dunsafe=on" ];
|
|
|
|
|
2017-09-21 15:02:38 +01:00
|
|
|
preFixup = ''
|
|
|
|
chmod +x $out/bin/ttbin2mysports
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/ryanbinns/ttwatch";
|
2017-09-21 15:02:38 +01:00
|
|
|
description = "Linux TomTom GPS Watch Utilities";
|
|
|
|
maintainers = with maintainers; [ dotlambda ];
|
|
|
|
license = licenses.mit;
|
|
|
|
platforms = with platforms; linux;
|
|
|
|
};
|
|
|
|
}
|