2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchgit, autoconf, automake, libtool, gtk2, pkg-config, perlPackages,
|
2021-03-20 04:20:00 +00:00
|
|
|
libxml2, gettext, python2, libxml2Python, docbook5, docbook_xsl,
|
2020-04-24 23:36:52 +00:00
|
|
|
libxslt, intltool, libart_lgpl, withGNOME ? false, libgnomeui,
|
|
|
|
gtk-mac-integration-gtk2 }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
pname = "dia";
|
|
|
|
version = "0.97.3.20170622";
|
|
|
|
|
|
|
|
src = fetchgit {
|
|
|
|
url = "https://gitlab.gnome.org/GNOME/dia.git";
|
|
|
|
rev = "b86085dfe2b048a2d37d587adf8ceba6fb8bc43c";
|
|
|
|
sha256 = "1fyxfrzdcs6blxhkw3bcgkksaf3byrsj4cbyrqgb4869k3ynap96";
|
|
|
|
};
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
patches = [
|
|
|
|
./CVE-2019-19451.patch
|
|
|
|
];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs =
|
2021-03-20 04:20:00 +00:00
|
|
|
[ gtk2 libxml2 gettext python2 libxml2Python docbook5
|
2020-04-24 23:36:52 +00:00
|
|
|
libxslt docbook_xsl libart_lgpl ]
|
2021-01-17 00:15:33 +00:00
|
|
|
++ lib.optional withGNOME libgnomeui
|
|
|
|
++ lib.optional stdenv.isDarwin gtk-mac-integration-gtk2;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ autoconf automake libtool pkg-config intltool ]
|
2020-04-24 23:36:52 +00:00
|
|
|
++ (with perlPackages; [ perl XMLParser ]);
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
NOCONFIGURE=1 ./autogen.sh # autoreconfHook is not enough
|
|
|
|
'';
|
2021-01-17 00:15:33 +00:00
|
|
|
configureFlags = lib.optional withGNOME "--enable-gnome";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
hardeningDisable = [ "format" ];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Gnome Diagram drawing software";
|
|
|
|
homepage = "http://live.gnome.org/Dia";
|
|
|
|
maintainers = with maintainers; [ raskin ];
|
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|