2015-04-04 11:46:51 +01:00
|
|
|
{ stdenv, fetchurl, garmintools, libgcrypt, libusb, pkgconfig, tinyxml, zlib }:
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "garmin-plugin-0.3.26";
|
|
|
|
src = fetchurl {
|
|
|
|
url = https://github.com/adiesner/GarminPlugin/archive/V0.3.26.tar.gz;
|
|
|
|
sha256 = "15gads1fj4sj970m5960dgnhys41ksi4cm53ldkf67wn8dc9i4k0";
|
|
|
|
};
|
|
|
|
sourceRoot = "GarminPlugin-0.3.26/src";
|
2017-09-05 22:26:13 +01:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
buildInputs = [ garmintools libusb libgcrypt tinyxml zlib ];
|
2015-04-04 11:46:51 +01:00
|
|
|
configureFlags = [
|
2016-04-16 18:36:23 +01:00
|
|
|
"--with-libgcrypt-prefix=${libgcrypt.dev}"
|
2015-04-04 11:46:51 +01: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 = {
|
|
|
|
homepage = http://www.andreas-diesner.de/garminplugin;
|
|
|
|
license = stdenv.lib.licenses.gpl3;
|
|
|
|
maintainers = [ stdenv.lib.maintainers.ocharles ];
|
2016-08-02 18:50:55 +01:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2015-04-04 11:46:51 +01:00
|
|
|
};
|
|
|
|
}
|