nixpkgs/pkgs/applications/graphics/dia/default.nix

44 lines
1.3 KiB
Nix
Raw Normal View History

{ 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,
libxslt, intltool, libart_lgpl, withGNOME ? false, libgnomeui,
gtk-mac-integration-gtk2 }:
2019-08-13 14:52:01 -07:00
stdenv.mkDerivation {
pname = "dia";
2017-08-30 18:04:07 -07:00
version = "0.97.3.20170622";
2017-08-30 18:04:07 -07:00
src = fetchgit {
url = "https://gitlab.gnome.org/GNOME/dia.git";
2017-08-30 18:04:07 -07:00
rev = "b86085dfe2b048a2d37d587adf8ceba6fb8bc43c";
sha256 = "1fyxfrzdcs6blxhkw3bcgkksaf3byrsj4cbyrqgb4869k3ynap96";
};
2021-01-30 09:01:45 -08:00
patches = [
./CVE-2019-19451.patch
];
buildInputs =
2021-03-25 04:09:43 -07:00
[ gtk2 libxml2 gettext python2 libxml2Python docbook5
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;
nativeBuildInputs = [ autoconf automake libtool pkg-config intltool ]
++ (with perlPackages; [ perl XMLParser ]);
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";
2017-08-30 18:04:07 -07:00
hardeningDisable = [ "format" ];
2012-07-15 08:01:27 -07:00
meta = with lib; {
description = "Gnome Diagram drawing software";
homepage = "http://live.gnome.org/Dia";
2018-08-22 14:42:05 -07:00
maintainers = with maintainers; [ raskin ];
license = licenses.gpl2;
platforms = platforms.unix;
};
}