From b6fe7e6d4109adc1d72aaf7db07ab007f228509e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Llu=C3=ADs=20Batlle=20i=20Rossell?= Date: Mon, 12 Apr 2010 21:03:22 +0000 Subject: [PATCH] Adding offlineimap, in a not very elegant way. svn path=/nixpkgs/trunk/; revision=21034 --- pkgs/tools/networking/offlineimap/default.nix | 21 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 15 +++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 pkgs/tools/networking/offlineimap/default.nix diff --git a/pkgs/tools/networking/offlineimap/default.nix b/pkgs/tools/networking/offlineimap/default.nix new file mode 100644 index 000000000000..fe9225d73fb7 --- /dev/null +++ b/pkgs/tools/networking/offlineimap/default.nix @@ -0,0 +1,21 @@ +{fetchurl, buildPythonPackage}: + +buildPythonPackage { + name = "offlineimap-6.2.0"; + + src = fetchurl { + url = "http://software.complete.org/software/attachments/download/413/offlineimap_6.2.0.orig.tar.gz"; + sha256 = "057pcz2291mdpkjyrwdzxfg831337sg7bbqyxmwfy42k7np5bdi4"; + }; + + doCheck = false; + + preConfigure = "set -x"; + buildInputs = [ ]; + + meta = { + description = "IMAP to local files bridge"; + homepage = "http://software.complete.org/software/projects/show/offlineimap"; + license = "GPLv2+"; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 640134b06879..f0c7797cbd5c 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -1225,6 +1225,21 @@ let inherit fetchurl stdenv pkgconfig openobex bluez; }; + offlineimap = import ../tools/networking/offlineimap { + inherit fetchurl; + # I did not find any better way of reusing buildPythonPackage+setuptools + # for a python with openssl support + buildPythonPackage = assert pythonFull.opensslSupport; + import ../development/python-modules/generic { + inherit makeWrapper lib; + python = pythonFull; + setuptools = builderDefsPackage (import ../development/python-modules/setuptools) { + inherit makeWrapper; + python = pythonFull; + }; + }; + }; + opendbx = import ../development/libraries/opendbx { inherit fetchurl stdenv readline mysql postgresql sqlite; };