diff options
Diffstat (limited to 'nixpkgs/pkgs/tools/misc/ttwatch')
-rw-r--r-- | nixpkgs/pkgs/tools/misc/ttwatch/default.nix | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/tools/misc/ttwatch/default.nix b/nixpkgs/pkgs/tools/misc/ttwatch/default.nix new file mode 100644 index 000000000000..5e5413454106 --- /dev/null +++ b/nixpkgs/pkgs/tools/misc/ttwatch/default.nix @@ -0,0 +1,33 @@ +{ lib, stdenv, fetchFromGitHub +, cmake, perl, pkg-config +, openssl, curl, libusb1, protobufc +, enableUnsafe ? false }: + +stdenv.mkDerivation { + pname = "ttwatch"; + version = "2020-02-05"; + + src = fetchFromGitHub { + owner = "ryanbinns"; + repo = "ttwatch"; + rev = "bfdf1372515574e1fb3871dc1039f8d8a5dbdada"; + sha256 = "07nd4dbkchxy8js1h1f6pzn63pls2afww97wyiiw6zid43mpqyg4"; + }; + + nativeBuildInputs = [ cmake perl pkg-config ]; + buildInputs = [ openssl curl libusb1 protobufc ]; + + cmakeFlags = lib.optional enableUnsafe [ "-Dunsafe=on" ]; + + preFixup = '' + chmod +x $out/bin/ttbin2mysports + ''; + + meta = with lib; { + homepage = "https://github.com/ryanbinns/ttwatch"; + description = "Linux TomTom GPS Watch Utilities"; + maintainers = with maintainers; [ dotlambda ]; + license = licenses.mit; + platforms = with platforms; linux; + }; +} |