diff --git a/pkgs/applications/office/kmymoney/default.nix b/pkgs/applications/office/kmymoney/default.nix new file mode 100644 index 000000000000..8665b8731500 --- /dev/null +++ b/pkgs/applications/office/kmymoney/default.nix @@ -0,0 +1,22 @@ +{ stdenv, fetchurl, cmake, kdelibs, automoc4, kdepimlibs, gettext, + shared_mime_info, perl, boost, gpgme }: + +stdenv.mkDerivation rec { + name = "kmymoney-4.5.3"; + + src = fetchurl { + url = "mirror://sourceforge/kmymoney2/${name}.tar.bz2"; + sha256 = "1yvgyzybfm1ajswwq3w3kdij4y2cyhfkk52xhv7dbp1wrxsp5cx9"; + }; + + buildInputs = [ kdelibs kdepimlibs perl boost gpgme ]; + buildNativeInputs = [ cmake automoc4 gettext shared_mime_info ]; + + patches = [ ./qgpgme.patch ]; + + meta = { + homepage = http://kmymoney2.sourceforge.net/; + description = "KDE personal money manager"; + inherit (kdelibs.meta) platforms maintainers; + }; +} diff --git a/pkgs/applications/office/kmymoney/qgpgme.patch b/pkgs/applications/office/kmymoney/qgpgme.patch new file mode 100644 index 000000000000..59ed37edaf8e --- /dev/null +++ b/pkgs/applications/office/kmymoney/qgpgme.patch @@ -0,0 +1,17 @@ +KMymoney tries to find qgpgme before kdepimlibs. This is wrong because +FindQGpgme is installed by kdepimlibs, thus can be invisible until kdepimlibs +found. +diff --git a/CMakeLists.txt b/CMakeLists.txt +index f6d7305..88bac67 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -59,8 +59,8 @@ else (WIN32) + find_package(Boost "1.33.1" COMPONENTS graph) + endif (WIN32) + # needed by libkgpgfile +-find_package(QGpgme REQUIRED) + find_package(KdepimLibs REQUIRED) ++find_package(QGpgme REQUIRED) + find_package(SharedMimeInfo REQUIRED) + + add_definitions( ${QT_DEFINITIONS} ${KDE4_DEFINITIONS} ${KDEPIM_DEFINITIONS}) diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index dbece92618a2..7db30ca64f17 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -7863,6 +7863,8 @@ let inherit (pkgs.gtkLibs) pango; }; + kmymoney = callPackage ../applications/office/kmymoney { }; + kipi_plugins = callPackage ../applications/graphics/kipi-plugins { inherit (pkgs.gtkLibs) gdk_pixbuf; };