mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-21 13:10:33 +00:00
46420bbaa3
treewide replacement of stdenv.mkDerivation rec { name = "*-${version}"; version = "*"; to pname
32 lines
835 B
Nix
32 lines
835 B
Nix
{ stdenv, fetchFromGitHub, cmake, perl, openssl, curl, libusb1
|
|
, enableUnsafe ? false }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "ttwatch";
|
|
version = "2018-12-04";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ryanbinns";
|
|
repo = "ttwatch";
|
|
rev = "eeb4e19bf7ca7ca2cee7f5fbeb483b27198d86a1";
|
|
sha256 = "18384apdkq35120cgmda686d293354aibwcq2hwhvvjmnq49fnzr";
|
|
};
|
|
|
|
nativeBuildInputs = [ cmake perl ];
|
|
buildInputs = [ openssl curl libusb1 ];
|
|
|
|
cmakeFlags = stdenv.lib.optional enableUnsafe [ "-Dunsafe=on" ];
|
|
|
|
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;
|
|
};
|
|
}
|