2021-01-17 02:09:27 +00:00
|
|
|
{ lib, stdenv, fetchurl, garmintools, libgcrypt, libusb-compat-0_1, pkg-config, tinyxml, zlib }:
|
2015-04-04 10:46:51 +00:00
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "garmin-plugin-0.3.26";
|
|
|
|
src = fetchurl {
|
2020-04-01 01:11:51 +00:00
|
|
|
url = "https://github.com/adiesner/GarminPlugin/archive/V0.3.26.tar.gz";
|
2015-04-04 10:46:51 +00:00
|
|
|
sha256 = "15gads1fj4sj970m5960dgnhys41ksi4cm53ldkf67wn8dc9i4k0";
|
|
|
|
};
|
|
|
|
sourceRoot = "GarminPlugin-0.3.26/src";
|
2021-01-17 02:09:27 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2020-04-28 03:29:39 +00:00
|
|
|
buildInputs = [ garmintools libusb-compat-0_1 libgcrypt tinyxml zlib ];
|
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"
|
|
|
|
];
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/lib/mozilla/plugins
|
|
|
|
cp npGarminPlugin.so $out/lib/mozilla/plugins
|
|
|
|
'';
|
|
|
|
meta = {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "http://www.andreas-diesner.de/garminplugin";
|
2021-01-15 05:42:41 +00:00
|
|
|
license = lib.licenses.gpl3;
|
2020-12-07 14:26:45 +00:00
|
|
|
maintainers = [ ];
|
2021-01-15 05:42:41 +00:00
|
|
|
platforms = lib.platforms.linux;
|
2015-04-04 10:46:51 +00:00
|
|
|
};
|
|
|
|
}
|