gammu: add some DB support
This commit is contained in:
parent
77f8f35d57
commit
f13333d43c
|
@ -1,5 +1,8 @@
|
||||||
{ stdenv, fetchurl, python, pkgconfig, cmake, bluez, libusb1, curl
|
{ stdenv, fetchurl, python, pkgconfig, cmake, bluez, libusb1, curl
|
||||||
, libiconv, gettext, sqlite }:
|
, libiconv, gettext, sqlite
|
||||||
|
, dbiSupport ? false, libdbi ? null, libdbiDrivers ? null
|
||||||
|
, postgresSupport ? false, postgresql ? null
|
||||||
|
}:
|
||||||
|
|
||||||
with stdenv.lib;
|
with stdenv.lib;
|
||||||
|
|
||||||
|
@ -14,13 +17,15 @@ stdenv.mkDerivation rec {
|
||||||
|
|
||||||
patches = [ ./bashcomp-dir.patch ];
|
patches = [ ./bashcomp-dir.patch ];
|
||||||
|
|
||||||
buildInputs = [ python pkgconfig cmake bluez libusb1 curl gettext sqlite libiconv ];
|
buildInputs = [ python pkgconfig cmake bluez libusb1 curl gettext sqlite libiconv ]
|
||||||
|
++ optionals dbiSupport [ libdbi libdbiDrivers ]
|
||||||
|
++ optionals postgresSupport [ postgresql ];
|
||||||
|
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
homepage = "http://wammu.eu/gammu/";
|
homepage = "http://wammu.eu/gammu/";
|
||||||
description = "Command line utility and library to control mobil phones";
|
description = "Command line utility and library to control mobile phones";
|
||||||
license = licenses.gpl2;
|
license = licenses.gpl2;
|
||||||
platforms = platforms.linux;
|
platforms = platforms.linux;
|
||||||
maintainers = [ maintainers.coroa ];
|
maintainers = [ maintainers.coroa ];
|
||||||
|
|
Loading…
Reference in a new issue