nixpkgs/pkgs/tools/misc/ttwatch/default.nix

29 lines
754 B
Nix
Raw Normal View History

2017-09-21 14:02:38 +00:00
{ stdenv, fetchFromGitHub, cmake, perl, openssl, curl, libusb1 }:
stdenv.mkDerivation rec {
name = "ttwatch-${version}";
2017-10-09 10:07:11 +00:00
version = "2017-09-26";
2017-09-21 14:02:38 +00:00
src = fetchFromGitHub {
owner = "ryanbinns";
repo = "ttwatch";
2017-10-09 10:07:11 +00:00
rev = "31fb7ca6ac992d131a3f5ea6acf49f0c52a128c5";
sha256 = "1sxjx593jqbq45jn2dkjz07zq9kkgsbcj971phimlm6dj6g75wxq";
2017-09-21 14:02:38 +00:00
};
nativeBuildInputs = [ cmake perl ];
buildInputs = [ openssl curl libusb1 ];
preFixup = ''
chmod +x $out/bin/ttbin2mysports
'';
meta = with stdenv.lib; {
homepage = https://github.com/ryanbinns/ttwatch;
description = "Linux TomTom GPS Watch Utilities";
maintainers = with maintainers; [ dotlambda ];
license = licenses.mit;
platforms = with platforms; linux;
};
}