2014-05-08 11:34:51 +00:00
|
|
|
{stdenv, fetchurlGnome, gtk, pkgconfig, perl, perlXMLParser, libxml2, gettext
|
2011-09-20 06:31:37 +00:00
|
|
|
, python, libxml2Python, docbook5, docbook_xsl, libxslt, intltool, libart_lgpl
|
2012-01-18 20:53:01 +00:00
|
|
|
, withGNOME ? false, libgnomeui }:
|
2007-06-20 12:20:39 +00:00
|
|
|
|
2011-09-20 06:31:37 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2012-01-02 13:42:11 +00:00
|
|
|
name = src.pkgname;
|
2011-09-20 06:31:37 +00:00
|
|
|
|
2014-05-08 11:34:51 +00:00
|
|
|
src = fetchurlGnome {
|
2011-09-20 06:31:37 +00:00
|
|
|
project = "dia";
|
2012-01-02 14:13:03 +00:00
|
|
|
major = "0"; minor = "97"; patchlevel = "2"; extension = "xz";
|
|
|
|
sha256 = "1qgawm7rrf4wd1yc0fp39ywv8gbz4ry1s16k00dzg5w6p67lfqd7";
|
2007-06-20 12:20:39 +00:00
|
|
|
};
|
|
|
|
|
2011-09-20 06:31:37 +00:00
|
|
|
buildInputs =
|
|
|
|
[ gtk perlXMLParser libxml2 gettext python libxml2Python docbook5
|
|
|
|
libxslt docbook_xsl libart_lgpl
|
|
|
|
] ++ stdenv.lib.optional withGNOME libgnomeui;
|
|
|
|
|
2012-12-28 18:20:09 +00:00
|
|
|
nativeBuildInputs = [ pkgconfig intltool perl ];
|
2011-09-20 06:31:37 +00:00
|
|
|
|
|
|
|
configureFlags = stdenv.lib.optionalString withGNOME "--enable-gnome";
|
2007-06-26 11:49:45 +00:00
|
|
|
|
2012-07-15 15:01:27 +00:00
|
|
|
patches = [ ./glib-top-level-header.patch ];
|
|
|
|
|
2012-11-27 23:21:34 +00:00
|
|
|
# This file should normally require a gtk-update-icon-cache -q /usr/share/icons/hicolor command
|
|
|
|
# It have no reasons to exist in a redistribuable package
|
|
|
|
postInstall = "rm $out/share/icons/hicolor/icon-theme.cache";
|
|
|
|
|
2007-06-26 11:49:45 +00:00
|
|
|
meta = {
|
2011-09-20 06:31:37 +00:00
|
|
|
description = "Gnome Diagram drawing software";
|
2010-01-15 10:51:44 +00:00
|
|
|
homepage = http://live.gnome.org/Dia;
|
2011-09-20 06:31:37 +00:00
|
|
|
maintainers = with stdenv.lib.maintainers; [raskin urkud];
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2007-06-26 11:49:45 +00:00
|
|
|
};
|
2007-06-20 12:20:39 +00:00
|
|
|
}
|