2017-08-31 03:04:07 +02:00
|
|
|
{ stdenv, fetchgit, autoconf, automake, libtool, gtk2, pkgconfig, perl,
|
|
|
|
perlXMLParser, libxml2, gettext, python, libxml2Python, docbook5, docbook_xsl,
|
|
|
|
libxslt, intltool, libart_lgpl, withGNOME ? false, libgnomeui,
|
|
|
|
gtk-mac-integration }:
|
2007-06-20 14:20:39 +02:00
|
|
|
|
2011-09-20 08:31:37 +02:00
|
|
|
stdenv.mkDerivation rec {
|
2017-08-31 03:04:07 +02:00
|
|
|
name = "dia-${version}";
|
|
|
|
version = "0.97.3.20170622";
|
2011-09-20 08:31:37 +02:00
|
|
|
|
2017-08-31 03:04:07 +02:00
|
|
|
src = fetchgit {
|
|
|
|
url = git://git.gnome.org/dia;
|
|
|
|
rev = "b86085dfe2b048a2d37d587adf8ceba6fb8bc43c";
|
|
|
|
sha256 = "1fyxfrzdcs6blxhkw3bcgkksaf3byrsj4cbyrqgb4869k3ynap96";
|
2007-06-20 14:20:39 +02:00
|
|
|
};
|
|
|
|
|
2011-09-20 08:31:37 +02:00
|
|
|
buildInputs =
|
2016-09-11 23:24:51 +02:00
|
|
|
[ gtk2 perlXMLParser libxml2 gettext python libxml2Python docbook5
|
2017-08-31 03:04:07 +02:00
|
|
|
libxslt docbook_xsl libart_lgpl ]
|
|
|
|
++ stdenv.lib.optional withGNOME libgnomeui
|
|
|
|
++ stdenv.lib.optional stdenv.isDarwin gtk-mac-integration;
|
2011-09-20 08:31:37 +02:00
|
|
|
|
2017-08-31 03:04:07 +02:00
|
|
|
nativeBuildInputs = [ autoconf automake libtool pkgconfig intltool perl ];
|
2011-09-20 08:31:37 +02:00
|
|
|
|
2017-08-31 03:04:07 +02:00
|
|
|
preConfigure = ''
|
|
|
|
NOCONFIGURE=1 ./autogen.sh # autoreconfHook is not enough
|
|
|
|
'';
|
2011-09-20 08:31:37 +02:00
|
|
|
configureFlags = stdenv.lib.optionalString withGNOME "--enable-gnome";
|
2007-06-26 13:49:45 +02:00
|
|
|
|
2017-08-31 03:04:07 +02:00
|
|
|
hardeningDisable = [ "format" ];
|
2012-07-15 17:01:27 +02:00
|
|
|
|
2012-11-28 00:21:34 +01: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
|
2014-06-12 13:02:39 +02:00
|
|
|
postInstall = ''
|
|
|
|
rm $out/share/icons/hicolor/icon-theme.cache
|
|
|
|
'';
|
2012-11-28 00:21:34 +01:00
|
|
|
|
2007-06-26 13:49:45 +02:00
|
|
|
meta = {
|
2011-09-20 08:31:37 +02:00
|
|
|
description = "Gnome Diagram drawing software";
|
2010-01-15 11:51:44 +01:00
|
|
|
homepage = http://live.gnome.org/Dia;
|
2017-03-27 19:11:17 +02:00
|
|
|
maintainers = with stdenv.lib.maintainers; [raskin];
|
2017-08-31 02:01:47 +02:00
|
|
|
platforms = stdenv.lib.platforms.unix;
|
2007-06-26 13:49:45 +02:00
|
|
|
};
|
2007-06-20 14:20:39 +02:00
|
|
|
}
|