nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 stdenv,
4 fetchurl,
5 libusb-compat-0_1,
6}:
7stdenv.mkDerivation rec {
8 pname = "garmintools";
9 version = "0.10";
10 src = fetchurl {
11 url = "https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/garmintools/${pname}-${version}.tar.gz";
12 sha256 = "1vjc8h0z4kx2h52yc3chxn3wh1krn234fg12sggbia9zjrzhpmgz";
13 };
14 buildInputs = [ libusb-compat-0_1 ];
15 meta = {
16 description = "Provides the ability to communicate with the Garmin Forerunner 305 via the USB interface";
17 homepage = "https://code.google.com/archive/p/garmintools/"; # community clone at https://github.com/ianmartin/garmintools
18 license = lib.licenses.gpl2;
19 maintainers = [ ];
20 platforms = lib.platforms.unix;
21 # never built on aarch64-darwin since first introduction in nixpkgs
22 broken = stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64;
23 };
24}