3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/misc/garmin-plugin/default.nix
John Ericson 531e4b80c9 misc pkgs: Basic sed to get fix pkgconfig and autoreconfHook buildInputs
Only acts on one-line dependency lists.
2017-09-21 15:49:53 -04:00

27 lines
954 B
Nix

{ 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";
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ garmintools libusb libgcrypt tinyxml zlib ];
configureFlags = [
"--with-libgcrypt-prefix=${libgcrypt.dev}"
"--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 ];
platforms = stdenv.lib.platforms.linux;
};
}