garmin-plugin: New expression

This is a web browser plugin that allows one to use their Garmin device
on the myGarmin website. It provides a Linux version of the Garmin
Communicator plugin.
This commit is contained in:
Oliver Charles 2015-04-04 11:46:51 +01:00
parent 48b132df02
commit 63a4722d7b
3 changed files with 42 additions and 0 deletions

View file

@ -0,0 +1,24 @@
{ 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";
buildInputs = [ garmintools libusb libgcrypt pkgconfig tinyxml zlib ];
configureFlags = [
"--with-libgcrypt-prefix=${libgcrypt}"
"--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 ];
};
}

View file

@ -0,0 +1,14 @@
{ stdenv, fetchurl, libusb }:
stdenv.mkDerivation {
name = "garmintools-0.10";
src = fetchurl {
url = https://garmintools.googlecode.com/files/garmintools-0.10.tar.gz;
sha256 = "1vjc8h0z4kx2h52yc3chxn3wh1krn234fg12sggbia9zjrzhpmgz";
};
buildInputs = [ libusb ];
meta = {
homepage = https://code.google.com/p/garmintools;
license = stdenv.lib.licenses.gpl2;
maintainers = [ stdenv.lib.maintainers.ocharles ];
};
}

View file

@ -1396,6 +1396,10 @@ let
gtk = gtk3;
};
garmin-plugin = callPackage ../applications/misc/garmin-plugin {};
garmintools = callPackage ../development/libraries/garmintools {};
gawk = callPackage ../tools/text/gawk { };
gawkInteractive = appendToName "interactive"