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

32 lines
831 B
Nix
Raw Normal View History

2018-02-01 10:27:50 +01:00
{ stdenv, fetchFromGitHub, cmake, perl, openssl, curl, libusb1
, enableUnsafe ? false }:
2017-09-21 16:02:38 +02:00
2019-08-13 23:52:01 +02:00
stdenv.mkDerivation {
pname = "ttwatch";
2018-12-15 12:54:25 +01:00
version = "2018-12-04";
2017-09-21 16:02:38 +02:00
src = fetchFromGitHub {
owner = "ryanbinns";
repo = "ttwatch";
2018-12-15 12:54:25 +01:00
rev = "eeb4e19bf7ca7ca2cee7f5fbeb483b27198d86a1";
sha256 = "18384apdkq35120cgmda686d293354aibwcq2hwhvvjmnq49fnzr";
2017-09-21 16:02:38 +02:00
};
nativeBuildInputs = [ cmake perl ];
buildInputs = [ openssl curl libusb1 ];
2018-02-01 10:27:50 +01:00
cmakeFlags = stdenv.lib.optional enableUnsafe [ "-Dunsafe=on" ];
2017-09-21 16:02:38 +02:00
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;
};
}