1 { lib, stdenv, fetchFromGitHub, substituteAll, pkg-config, cmake, bluez, libusb1, curl
2 , libiconv, gettext, sqlite, bash, dialog
3 , dbiSupport ? false, libdbi ? null, libdbiDrivers ? null
4 , postgresSupport ? false, postgresql ? null
7 stdenv.mkDerivation rec {
11 src = fetchFromGitHub {
15 sha256 = "sha256-aeaGHVxOMiXRU6RHws+oAnzdO9RY1jw/X/xuGfSt76I=";
22 src = ./gammu-config-dialog.patch;
23 dialog = "${dialog}/bin/dialog";
27 nativeBuildInputs = [ pkg-config cmake ];
31 buildInputs = [ bash bluez libusb1 curl gettext sqlite libiconv ]
32 ++ lib.optionals dbiSupport [ libdbi libdbiDrivers ]
33 ++ lib.optionals postgresSupport [ postgresql ];
36 homepage = "https://wammu.eu/gammu/";
37 description = "Command line utility and library to control mobile phones";
38 license = licenses.gpl2;
39 platforms = platforms.linux;
40 maintainers = [ maintainers.coroa ];