From 4418c1e1d757f4b5825e95e443883523b83512bb Mon Sep 17 00:00:00 2001 From: Jonas Hoersch Date: Fri, 27 Dec 2013 22:33:52 +0100 Subject: [PATCH] Add gammu version 1.33.0 - a library and command line utility for interfacing phones --- .../misc/gammu/bashcomp-dir.patch | 12 ++++++++ pkgs/applications/misc/gammu/default.nix | 29 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 3 files changed, 43 insertions(+) create mode 100644 pkgs/applications/misc/gammu/bashcomp-dir.patch create mode 100644 pkgs/applications/misc/gammu/default.nix diff --git a/pkgs/applications/misc/gammu/bashcomp-dir.patch b/pkgs/applications/misc/gammu/bashcomp-dir.patch new file mode 100644 index 000000000000..94cc2929c1ee --- /dev/null +++ b/pkgs/applications/misc/gammu/bashcomp-dir.patch @@ -0,0 +1,12 @@ +diff -Naur gammu-1.33.0.orig/contrib/CMakeLists.txt gammu-1.33.0/contrib/CMakeLists.txt +--- gammu-1.33.0.orig/contrib/CMakeLists.txt 2013-12-26 20:56:22.887772110 +0100 ++++ gammu-1.33.0/contrib/CMakeLists.txt 2013-12-26 20:57:04.386276037 +0100 +@@ -85,7 +85,7 @@ + if (INSTALL_BASH_COMPLETION) + install ( + FILES bash-completion/gammu +- DESTINATION "/etc/bash_completion.d" ++ DESTINATION "${CMAKE_INSTALL_PREFIX}/etc/bash_completion.d" + COMPONENT "bash" + ) + endif (INSTALL_BASH_COMPLETION) diff --git a/pkgs/applications/misc/gammu/default.nix b/pkgs/applications/misc/gammu/default.nix new file mode 100644 index 000000000000..56e45b11c706 --- /dev/null +++ b/pkgs/applications/misc/gammu/default.nix @@ -0,0 +1,29 @@ +{ stdenv, fetchurl, python, pkgconfig, cmake, bluez, libusb1, curl +, libiconv, gettext, sqlite }: + +with stdenv.lib; + +stdenv.mkDerivation rec { + name = "gammu-${version}"; + version = "1.33.0"; + + src = fetchurl { + url = "http://sourceforge.net/projects/gammu/files/gammu/${version}/gammu-${version}.tar.xz"; + sha256 = "18gplx1v9d70k1q86d5i4n4dfpx367g34pj3zscppx126vwhv112"; + }; + + patches = [ ./bashcomp-dir.patch ]; + + buildInputs = [ python pkgconfig cmake bluez libusb1 curl libiconv + gettext sqlite ]; + + enableParallelBuilding = true; + + meta = { + homepage = "http://wammu.eu/gammu/"; + description = "Command line utility and library to control mobil phones"; + license = licenses.gpl2; + platforms = platforms.linux; + maintainers = [ maintainers.coroa ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index e2d9b9e9ce10..93d481f31651 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -10151,6 +10151,8 @@ let gajim = callPackage ../applications/networking/instant-messengers/gajim { }; + gammu = callPackage ../applications/misc/gammu { }; + gensgs = callPackage_i686 ../misc/emulators/gens-gs { }; ghostscript = callPackage ../misc/ghostscript {