2021-03-20 04:20:00 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, pkg-config, cmake, bluez, libusb1, curl
|
2020-04-24 23:36:52 +00:00
|
|
|
, libiconv, gettext, sqlite
|
|
|
|
, dbiSupport ? false, libdbi ? null, libdbiDrivers ? null
|
|
|
|
, postgresSupport ? false, postgresql ? null
|
|
|
|
}:
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
with lib;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "gammu";
|
2022-07-18 16:21:45 +00:00
|
|
|
version = "1.42.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "gammu";
|
|
|
|
repo = "gammu";
|
|
|
|
rev = version;
|
2022-07-18 16:21:45 +00:00
|
|
|
sha256 = "sha256-aeaGHVxOMiXRU6RHws+oAnzdO9RY1jw/X/xuGfSt76I=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
patches = [ ./bashcomp-dir.patch ./systemd.patch ];
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ pkg-config cmake ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-03-20 04:20:00 +00:00
|
|
|
strictDeps = true;
|
|
|
|
|
|
|
|
buildInputs = [ bluez libusb1 curl gettext sqlite libiconv ]
|
2020-04-24 23:36:52 +00:00
|
|
|
++ optionals dbiSupport [ libdbi libdbiDrivers ]
|
|
|
|
++ optionals postgresSupport [ postgresql ];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = "https://wammu.eu/gammu/";
|
|
|
|
description = "Command line utility and library to control mobile phones";
|
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = [ maintainers.coroa ];
|
|
|
|
};
|
|
|
|
}
|