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