garmin-plugin: switch to fetchFromGitHub, minor formatting, cleanup meta
This commit is contained in:
parent
d81070c891
commit
2c3c7cc347
1 changed files with 21 additions and 10 deletions
|
@ -1,28 +1,39 @@
|
||||||
{ lib, stdenv, fetchurl, garmintools, libgcrypt, libusb-compat-0_1, pkg-config, tinyxml, zlib }:
|
{ lib, stdenv, fetchFromGitHub, garmintools, libgcrypt, libusb-compat-0_1, pkg-config, tinyxml, zlib }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "garmin-plugin";
|
pname = "garmin-plugin";
|
||||||
version = "0.3.26";
|
version = "0.3.26";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchFromGitHub {
|
||||||
url = "https://github.com/adiesner/GarminPlugin/archive/V${version}.tar.gz";
|
owner = "adiesner";
|
||||||
sha256 = "15gads1fj4sj970m5960dgnhys41ksi4cm53ldkf67wn8dc9i4k0";
|
repo = "GarminPlugin";
|
||||||
|
rev = "V${version}";
|
||||||
|
sha256 = "sha256-l0WAbEsQl1dCADf5gTepYjsA1rQCJMLcrTxRR4PfUus=";
|
||||||
};
|
};
|
||||||
sourceRoot = "GarminPlugin-${version}/src";
|
|
||||||
|
preConfigure = ''
|
||||||
|
cd src
|
||||||
|
'';
|
||||||
|
|
||||||
nativeBuildInputs = [ pkg-config ];
|
nativeBuildInputs = [ pkg-config ];
|
||||||
|
|
||||||
buildInputs = [ garmintools libusb-compat-0_1 libgcrypt tinyxml zlib ];
|
buildInputs = [ garmintools libusb-compat-0_1 libgcrypt tinyxml zlib ];
|
||||||
|
|
||||||
configureFlags = [
|
configureFlags = [
|
||||||
"--with-libgcrypt-prefix=${libgcrypt.dev}"
|
"--with-libgcrypt-prefix=${libgcrypt.dev}"
|
||||||
"--with-garmintools-incdir=${garmintools}/include"
|
"--with-garmintools-incdir=${garmintools}/include"
|
||||||
"--with-garmintools-libdir=${garmintools}/lib"
|
"--with-garmintools-libdir=${garmintools}/lib"
|
||||||
];
|
];
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
mkdir -p $out/lib/mozilla/plugins
|
mkdir -p $out/lib/mozilla/plugins
|
||||||
cp npGarminPlugin.so $out/lib/mozilla/plugins
|
cp npGarminPlugin.so $out/lib/mozilla/plugins
|
||||||
'';
|
'';
|
||||||
meta = {
|
|
||||||
homepage = "http://www.andreas-diesner.de/garminplugin";
|
meta = with lib; {
|
||||||
license = lib.licenses.gpl3;
|
homepage = "https://adiesner.github.io/GarminPlugin/";
|
||||||
maintainers = [ ];
|
license = licenses.gpl3Plus;
|
||||||
platforms = lib.platforms.linux;
|
maintainers = with maintainers; [ ];
|
||||||
|
platforms = platforms.linux;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue