From f13333d43c84184c4fdc70e2935e36c88823f62f Mon Sep 17 00:00:00 2001 From: Gitolite Admin Date: Sun, 14 Feb 2016 21:22:47 +0300 Subject: [PATCH] gammu: add some DB support --- pkgs/applications/misc/gammu/default.nix | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/pkgs/applications/misc/gammu/default.nix b/pkgs/applications/misc/gammu/default.nix index 36e45bd0485..fc88bb3e354 100644 --- a/pkgs/applications/misc/gammu/default.nix +++ b/pkgs/applications/misc/gammu/default.nix @@ -1,5 +1,8 @@ { 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; @@ -14,13 +17,15 @@ stdenv.mkDerivation rec { 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; meta = { 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; platforms = platforms.linux; maintainers = [ maintainers.coroa ];