nixpkgs/pkgs/applications/misc/gammu/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

38 lines
973 B
Nix
Raw Normal View History

2021-03-25 11:58:42 +00:00
{ lib, stdenv, fetchFromGitHub, pkg-config, 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
}:
2021-01-15 05:42:41 +00:00
with lib;
stdenv.mkDerivation rec {
pname = "gammu";
version = "1.40.0";
2016-11-19 20:24:50 +00:00
src = fetchFromGitHub {
owner = "gammu";
repo = "gammu";
rev = version;
sha256 = "1jjaa9r3x6i8gv3yn1ngg815s6gsxblsw4wb5ddm77kamn2qyvpf";
};
2016-11-19 20:24:50 +00:00
patches = [ ./bashcomp-dir.patch ./systemd.patch ];
nativeBuildInputs = [ pkg-config cmake ];
2021-03-25 11:58:42 +00:00
strictDeps = true;
buildInputs = [ bluez libusb1 curl gettext sqlite libiconv ]
2016-02-14 18:22:47 +00:00
++ optionals dbiSupport [ libdbi libdbiDrivers ]
++ optionals postgresSupport [ postgresql ];
meta = {
homepage = "https://wammu.eu/gammu/";
2016-02-14 18:22:47 +00:00
description = "Command line utility and library to control mobile phones";
license = licenses.gpl2;
platforms = platforms.linux;
maintainers = [ maintainers.coroa ];
};
}