2018-10-12 23:56:15 +01:00
|
|
|
{ stdenv, fetchgit, autoconf, automake, libtool, gtk2, pkgconfig, perlPackages,
|
|
|
|
libxml2, gettext, python, libxml2Python, docbook5, docbook_xsl,
|
2019-09-12 15:25:05 +01:00
|
|
|
libxslt, intltool, libart_lgpl, withGNOME ? false, libgnomeui,
|
2018-10-10 22:20:34 +01:00
|
|
|
gtk-mac-integration-gtk2 }:
|
2007-06-20 13:20:39 +01:00
|
|
|
|
2019-08-13 22:52:01 +01:00
|
|
|
stdenv.mkDerivation {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "dia";
|
2017-08-31 02:04:07 +01:00
|
|
|
version = "0.97.3.20170622";
|
2011-09-20 07:31:37 +01:00
|
|
|
|
2017-08-31 02:04:07 +01:00
|
|
|
src = fetchgit {
|
2020-04-01 02:11:51 +01:00
|
|
|
url = "https://gitlab.gnome.org/GNOME/dia.git";
|
2017-08-31 02:04:07 +01:00
|
|
|
rev = "b86085dfe2b048a2d37d587adf8ceba6fb8bc43c";
|
|
|
|
sha256 = "1fyxfrzdcs6blxhkw3bcgkksaf3byrsj4cbyrqgb4869k3ynap96";
|
2007-06-20 13:20:39 +01:00
|
|
|
};
|
|
|
|
|
2011-09-20 07:31:37 +01:00
|
|
|
buildInputs =
|
2018-10-12 23:56:15 +01:00
|
|
|
[ gtk2 libxml2 gettext python libxml2Python docbook5
|
2019-09-12 15:25:05 +01:00
|
|
|
libxslt docbook_xsl libart_lgpl ]
|
2017-08-31 02:04:07 +01:00
|
|
|
++ stdenv.lib.optional withGNOME libgnomeui
|
2018-10-10 22:20:34 +01:00
|
|
|
++ stdenv.lib.optional stdenv.isDarwin gtk-mac-integration-gtk2;
|
2011-09-20 07:31:37 +01:00
|
|
|
|
2018-10-12 23:56:15 +01:00
|
|
|
nativeBuildInputs = [ autoconf automake libtool pkgconfig intltool ]
|
|
|
|
++ (with perlPackages; [ perl XMLParser ]);
|
2011-09-20 07:31:37 +01:00
|
|
|
|
2017-08-31 02:04:07 +01:00
|
|
|
preConfigure = ''
|
|
|
|
NOCONFIGURE=1 ./autogen.sh # autoreconfHook is not enough
|
|
|
|
'';
|
2018-08-03 17:52:40 +01:00
|
|
|
configureFlags = stdenv.lib.optional withGNOME "--enable-gnome";
|
2007-06-26 12:49:45 +01:00
|
|
|
|
2017-08-31 02:04:07 +01:00
|
|
|
hardeningDisable = [ "format" ];
|
2012-07-15 16:01:27 +01:00
|
|
|
|
2018-08-22 22:42:05 +01:00
|
|
|
meta = with stdenv.lib; {
|
2011-09-20 07:31:37 +01:00
|
|
|
description = "Gnome Diagram drawing software";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://live.gnome.org/Dia";
|
2018-08-22 22:42:05 +01:00
|
|
|
maintainers = with maintainers; [ raskin ];
|
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.unix;
|
2007-06-26 12:49:45 +01:00
|
|
|
};
|
2007-06-20 13:20:39 +01:00
|
|
|
}
|