From dee4d9375703c648068722aadce9866ce3ac737f Mon Sep 17 00:00:00 2001 From: Marc Weber Date: Sun, 13 Sep 2009 08:54:44 +0000 Subject: [PATCH] adding haru pdf lib svn path=/nixpkgs/trunk/; revision=17076 --- .../development/libraries/libharu/default.nix | 21 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 4 ++++ 2 files changed, 25 insertions(+) create mode 100644 pkgs/development/libraries/libharu/default.nix diff --git a/pkgs/development/libraries/libharu/default.nix b/pkgs/development/libraries/libharu/default.nix new file mode 100644 index 000000000000..51c06c0382b0 --- /dev/null +++ b/pkgs/development/libraries/libharu/default.nix @@ -0,0 +1,21 @@ +args: with args; +stdenv.mkDerivation { + name = "haru-2.1.0"; + + src = fetchurl { + url = http://libharu.org/files/libharu-2.1.0.tar.bz2; + sha256 = "07mbvw41jwrapc8jwhi385jpr5b3wx6kah41mkxkifvc06y2141r"; + }; + + configureFlags = "--with-zlib=${zlib} --with-png=${libpng}"; + + buildInputs = [zlib libpng]; + + meta = { + description = "cross platform, open source library for generating PDF files"; + homepage = http://libharu.org/wiki/Main_Page; + license = "ZLIB/LIBPNG"; # see README. + maintainers = [args.lib.maintainers.marcweber]; + platforms = args.lib.platforms.linux; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 8580bbeca3f6..d66ac6be97d3 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -3563,6 +3563,10 @@ let inherit (gtkLibs) glib; }; + libharu = import ../development/libraries/libharu { + inherit fetchurl stdenv lib zlib libpng; + }; + libical = import ../development/libraries/libical { inherit stdenv fetchurl perl; };