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