summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorNikolay Amiantov <ab@fmap.me>2016-02-16 19:40:00 +0300
committerNikolay Amiantov <ab@fmap.me>2016-02-16 19:40:00 +0300
commit39e9b43082626ae3ed9a37acb876f6def7baf2c5 (patch)
tree90d190f6ca1c770e085aa4414be2fdae6aa3e19e /pkgs
parent7fd2cc1ea8687568901e7f8efec940ccb9e06657 (diff)
parent7b7cf281d3bb3ddf21aefd8afb6304673de8bcc5 (diff)
downloadnixlib-39e9b43082626ae3ed9a37acb876f6def7baf2c5.tar
nixlib-39e9b43082626ae3ed9a37acb876f6def7baf2c5.tar.gz
nixlib-39e9b43082626ae3ed9a37acb876f6def7baf2c5.tar.bz2
nixlib-39e9b43082626ae3ed9a37acb876f6def7baf2c5.tar.lz
nixlib-39e9b43082626ae3ed9a37acb876f6def7baf2c5.tar.xz
nixlib-39e9b43082626ae3ed9a37acb876f6def7baf2c5.tar.zst
nixlib-39e9b43082626ae3ed9a37acb876f6def7baf2c5.zip
Merge branch 'gammu-smsd' of https://github.com/zohl/nixpkgs into zohl-gammu-smsd
Closes #12998
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/applications/misc/gammu/default.nix11
1 files changed, 8 insertions, 3 deletions
diff --git a/pkgs/applications/misc/gammu/default.nix b/pkgs/applications/misc/gammu/default.nix
index 36e45bd04856..fc88bb3e354f 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 ];