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

40 lines
1.3 KiB
Nix
Raw Normal View History

{ stdenv, fetchgit, autoconf, automake, libtool, gtk2, pkgconfig, perlPackages,
libxml2, gettext, python, libxml2Python, docbook5, docbook_xsl,
libxslt, intltool, libart_lgpl, withGNOME ? false, libgnomeui,
gtk-mac-integration-gtk2 }:
2019-08-13 22:52:01 +01:00
stdenv.mkDerivation {
pname = "dia";
2017-08-31 02:04:07 +01:00
version = "0.97.3.20170622";
2017-08-31 02:04:07 +01:00
src = fetchgit {
2018-05-29 09:26:03 +01:00
url = https://gitlab.gnome.org/GNOME/dia.git;
2017-08-31 02:04:07 +01:00
rev = "b86085dfe2b048a2d37d587adf8ceba6fb8bc43c";
sha256 = "1fyxfrzdcs6blxhkw3bcgkksaf3byrsj4cbyrqgb4869k3ynap96";
};
buildInputs =
[ gtk2 libxml2 gettext python libxml2Python docbook5
libxslt docbook_xsl libart_lgpl ]
2017-08-31 02:04:07 +01:00
++ stdenv.lib.optional withGNOME libgnomeui
++ stdenv.lib.optional stdenv.isDarwin gtk-mac-integration-gtk2;
nativeBuildInputs = [ autoconf automake libtool pkgconfig intltool ]
++ (with perlPackages; [ perl XMLParser ]);
2017-08-31 02:04:07 +01:00
preConfigure = ''
NOCONFIGURE=1 ./autogen.sh # autoreconfHook is not enough
'';
configureFlags = stdenv.lib.optional withGNOME "--enable-gnome";
2017-08-31 02:04:07 +01:00
hardeningDisable = [ "format" ];
2012-07-15 16:01:27 +01:00
2018-08-22 22:42:05 +01:00
meta = with stdenv.lib; {
description = "Gnome Diagram drawing software";
homepage = http://live.gnome.org/Dia;
2018-08-22 22:42:05 +01:00
maintainers = with maintainers; [ raskin ];
license = licenses.gpl2;
platforms = platforms.unix;
};
}