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

32 lines
845 B
Nix
Raw Normal View History

2018-02-01 09:27:50 +00:00
{ stdenv, fetchFromGitHub, cmake, perl, openssl, curl, libusb1
, enableUnsafe ? false }:
2017-09-21 14:02:38 +00:00
stdenv.mkDerivation rec {
name = "ttwatch-${version}";
2018-02-01 09:27:50 +00:00
version = "2018-02-01";
2017-09-21 14:02:38 +00:00
src = fetchFromGitHub {
owner = "ryanbinns";
repo = "ttwatch";
2018-02-01 09:27:50 +00:00
rev = "b5c54647ed9b640584e53c4c15ee12d210790021";
sha256 = "136sskz9hnbwp49gxp983mswzgpl8yfc25ni79csbsnwp0k4lb94";
2017-09-21 14:02:38 +00:00
};
nativeBuildInputs = [ cmake perl ];
buildInputs = [ openssl curl libusb1 ];
2018-02-01 09:27:50 +00:00
cmakeFlags = stdenv.lib.optional enableUnsafe [ "-Dunsafe=on" ];
2017-09-21 14:02:38 +00: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;
};
}