From 87b968e85855c45c55a77648d4982a83f04d068c Mon Sep 17 00:00:00 2001 From: "Yury G. Kudryashov" Date: Tue, 20 Sep 2011 06:31:37 +0000 Subject: [PATCH] Use fetchurl_gnome in dia +small style changes (though almost all string changed) svn path=/nixpkgs/trunk/; revision=29389 --- pkgs/applications/graphics/dia/default.nix | 32 ++++++++++++++-------- pkgs/top-level/all-packages.nix | 4 ++- 2 files changed, 24 insertions(+), 12 deletions(-) diff --git a/pkgs/applications/graphics/dia/default.nix b/pkgs/applications/graphics/dia/default.nix index 3f70f5d60389..533e196cee4d 100644 --- a/pkgs/applications/graphics/dia/default.nix +++ b/pkgs/applications/graphics/dia/default.nix @@ -1,19 +1,29 @@ -{stdenv, fetchurl, gtk, pkgconfig, glib, perl, perlXMLParser, libxml2, gettext, python, libxml2Python, docbook5, docbook_xsl, libxslt, intltool }: -stdenv.mkDerivation { - name = "dia-0.97"; +{stdenv, fetchurl_gnome, gtk, pkgconfig, perl, perlXMLParser, libxml2, gettext +, python, libxml2Python, docbook5, docbook_xsl, libxslt, intltool, libart_lgpl +, withGNOME ? false, libgnomeui }: - src = fetchurl { - url = mirror://gnome/sources/dia/0.97/dia-0.97.tar.bz2; - sha256 = "0nngdjklap3x1b7cxnwawh29axbwk8siyq7w4iinsns3slmki0wh"; +stdenv.mkDerivation rec { + inherit (src) name; + + src = fetchurl_gnome { + project = "dia"; + major = "0"; minor = "97"; patchlevel = "1"; + sha256 = "0hli89fdzzbshqdznxrbgyqw55qlr4z5xpn86jcg5fl7kln8pzld"; }; - buildInputs = [gtk glib perl pkgconfig perlXMLParser libxml2 gettext python libxml2Python docbook5 libxslt docbook_xsl intltool]; + buildInputs = + [ gtk perlXMLParser libxml2 gettext python libxml2Python docbook5 + libxslt docbook_xsl libart_lgpl + ] ++ stdenv.lib.optional withGNOME libgnomeui; + + buildNativeInputs = [ pkgconfig intltool perl ]; + + configureFlags = stdenv.lib.optionalString withGNOME "--enable-gnome"; meta = { - description = "Gnome Diagram drawing software."; + description = "Gnome Diagram drawing software"; homepage = http://live.gnome.org/Dia; - maintainers = [stdenv.lib.maintainers.raskin]; - platforms = with stdenv.lib.platforms; - linux; + maintainers = with stdenv.lib.maintainers; [raskin urkud]; + platforms = stdenv.lib.platforms.linux; }; } diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 11899a7efe6d..d5ebc8238f45 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -6310,7 +6310,9 @@ let inherit (xlibs) libxcb pixman libpthreadstubs libXau; }; - dia = callPackage ../applications/graphics/dia { }; + dia = callPackage ../applications/graphics/dia { + inherit (pkgs.gnome) libart_lgpl libgnomeui; + }; djvulibre = callPackage ../applications/misc/djvulibre { };