2016-11-19 12:24:50 -08:00
|
|
|
{ stdenv, fetchFromGitHub, python, pkgconfig, cmake, bluez, libusb1, curl
|
2016-02-14 10:22:47 -08:00
|
|
|
, libiconv, gettext, sqlite
|
|
|
|
, dbiSupport ? false, libdbi ? null, libdbiDrivers ? null
|
|
|
|
, postgresSupport ? false, postgresql ? null
|
|
|
|
}:
|
2013-12-27 13:33:52 -08:00
|
|
|
|
|
|
|
with stdenv.lib;
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 05:41:18 -07:00
|
|
|
pname = "gammu";
|
2019-02-25 08:06:28 -08:00
|
|
|
version = "1.40.0";
|
2013-12-27 13:33:52 -08:00
|
|
|
|
2016-11-19 12:24:50 -08:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "gammu";
|
|
|
|
repo = "gammu";
|
|
|
|
rev = version;
|
2019-02-25 08:06:28 -08:00
|
|
|
sha256 = "1jjaa9r3x6i8gv3yn1ngg815s6gsxblsw4wb5ddm77kamn2qyvpf";
|
2013-12-27 13:33:52 -08:00
|
|
|
};
|
|
|
|
|
2016-11-19 12:24:50 -08:00
|
|
|
patches = [ ./bashcomp-dir.patch ./systemd.patch ];
|
2013-12-27 13:33:52 -08:00
|
|
|
|
2017-04-04 17:31:56 -07:00
|
|
|
nativeBuildInputs = [ pkgconfig cmake ];
|
|
|
|
|
|
|
|
buildInputs = [ python bluez libusb1 curl gettext sqlite libiconv ]
|
2016-02-14 10:22:47 -08:00
|
|
|
++ optionals dbiSupport [ libdbi libdbiDrivers ]
|
|
|
|
++ optionals postgresSupport [ postgresql ];
|
2013-12-27 13:33:52 -08:00
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
meta = {
|
2017-08-02 14:50:51 -07:00
|
|
|
homepage = https://wammu.eu/gammu/;
|
2016-02-14 10:22:47 -08:00
|
|
|
description = "Command line utility and library to control mobile phones";
|
2013-12-27 13:33:52 -08:00
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = [ maintainers.coroa ];
|
|
|
|
};
|
|
|
|
}
|