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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

44 lines
1.3 KiB
Nix
Raw Normal View History

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