2013-12-27 22:33:52 +01:00
|
|
|
{ stdenv, fetchurl, python, pkgconfig, cmake, bluez, libusb1, curl
|
2016-02-14 19:22:47 +01:00
|
|
|
, libiconv, gettext, sqlite
|
|
|
|
, dbiSupport ? false, libdbi ? null, libdbiDrivers ? null
|
|
|
|
, postgresSupport ? false, postgresql ? null
|
|
|
|
}:
|
2013-12-27 22:33:52 +01:00
|
|
|
|
|
|
|
with stdenv.lib;
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "gammu-${version}";
|
|
|
|
version = "1.33.0";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2016-08-20 15:21:13 +02:00
|
|
|
url = "mirror://sourceforge/project/gammu/gammu/${version}/gammu-${version}.tar.xz";
|
2013-12-27 22:33:52 +01:00
|
|
|
sha256 = "18gplx1v9d70k1q86d5i4n4dfpx367g34pj3zscppx126vwhv112";
|
|
|
|
};
|
|
|
|
|
|
|
|
patches = [ ./bashcomp-dir.patch ];
|
|
|
|
|
2016-02-14 19:22:47 +01:00
|
|
|
buildInputs = [ python pkgconfig cmake bluez libusb1 curl gettext sqlite libiconv ]
|
|
|
|
++ optionals dbiSupport [ libdbi libdbiDrivers ]
|
|
|
|
++ optionals postgresSupport [ postgresql ];
|
2013-12-27 22:33:52 +01:00
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = "http://wammu.eu/gammu/";
|
2016-02-14 19:22:47 +01:00
|
|
|
description = "Command line utility and library to control mobile phones";
|
2013-12-27 22:33:52 +01:00
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = [ maintainers.coroa ];
|
|
|
|
};
|
|
|
|
}
|