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