2021-11-08 08:57:33 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, garmintools, libgcrypt, libusb-compat-0_1, pkg-config, tinyxml, zlib }:
|
|
|
|
|
2021-11-07 20:29:51 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "garmin-plugin";
|
|
|
|
version = "0.3.26";
|
|
|
|
|
2021-11-08 08:57:33 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "adiesner";
|
|
|
|
repo = "GarminPlugin";
|
|
|
|
rev = "V${version}";
|
|
|
|
sha256 = "sha256-l0WAbEsQl1dCADf5gTepYjsA1rQCJMLcrTxRR4PfUus=";
|
2015-04-04 10:46:51 +00:00
|
|
|
};
|
2021-11-08 08:57:33 +00:00
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
cd src
|
|
|
|
'';
|
|
|
|
|
2021-01-17 02:09:27 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2021-11-08 08:57:33 +00:00
|
|
|
|
2020-04-28 03:29:39 +00:00
|
|
|
buildInputs = [ garmintools libusb-compat-0_1 libgcrypt tinyxml zlib ];
|
2021-11-08 08:57:33 +00:00
|
|
|
|
2015-04-04 10:46:51 +00:00
|
|
|
configureFlags = [
|
2016-04-16 17:36:23 +00:00
|
|
|
"--with-libgcrypt-prefix=${libgcrypt.dev}"
|
2015-04-04 10:46:51 +00:00
|
|
|
"--with-garmintools-incdir=${garmintools}/include"
|
|
|
|
"--with-garmintools-libdir=${garmintools}/lib"
|
|
|
|
];
|
2021-11-08 08:57:33 +00:00
|
|
|
|
2015-04-04 10:46:51 +00:00
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/lib/mozilla/plugins
|
|
|
|
cp npGarminPlugin.so $out/lib/mozilla/plugins
|
|
|
|
'';
|
2021-11-08 08:57:33 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://adiesner.github.io/GarminPlugin/";
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
maintainers = with maintainers; [ ];
|
|
|
|
platforms = platforms.linux;
|
2015-04-04 10:46:51 +00:00
|
|
|
};
|
|
|
|
}
|