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