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