diff options
Diffstat (limited to 'nixpkgs/pkgs/applications/misc/gammu/default.nix')
-rw-r--r-- | nixpkgs/pkgs/applications/misc/gammu/default.nix | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/applications/misc/gammu/default.nix b/nixpkgs/pkgs/applications/misc/gammu/default.nix new file mode 100644 index 000000000000..736685f5eb1f --- /dev/null +++ b/nixpkgs/pkgs/applications/misc/gammu/default.nix @@ -0,0 +1,37 @@ +{ lib, stdenv, fetchFromGitHub, pkg-config, cmake, bluez, libusb1, curl +, libiconv, gettext, sqlite +, dbiSupport ? false, libdbi ? null, libdbiDrivers ? null +, postgresSupport ? false, postgresql ? null +}: + +with lib; + +stdenv.mkDerivation rec { + pname = "gammu"; + version = "1.40.0"; + + src = fetchFromGitHub { + owner = "gammu"; + repo = "gammu"; + rev = version; + sha256 = "1jjaa9r3x6i8gv3yn1ngg815s6gsxblsw4wb5ddm77kamn2qyvpf"; + }; + + patches = [ ./bashcomp-dir.patch ./systemd.patch ]; + + nativeBuildInputs = [ pkg-config cmake ]; + + strictDeps = true; + + buildInputs = [ bluez libusb1 curl gettext sqlite libiconv ] + ++ 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 ]; + }; +} |