3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/graphics/dia/default.nix

44 lines
1.4 KiB
Nix
Raw Normal View History

2017-08-31 02:04:07 +01:00
{ stdenv, fetchgit, autoconf, automake, libtool, gtk2, pkgconfig, perl,
perlXMLParser, libxml2, gettext, python, libxml2Python, docbook5, docbook_xsl,
libxslt, intltool, libart_lgpl, withGNOME ? false, libgnomeui,
gtk-mac-integration }:
stdenv.mkDerivation rec {
2017-08-31 02:04:07 +01:00
name = "dia-${version}";
version = "0.97.3.20170622";
2017-08-31 02:04:07 +01:00
src = fetchgit {
url = git://git.gnome.org/dia;
rev = "b86085dfe2b048a2d37d587adf8ceba6fb8bc43c";
sha256 = "1fyxfrzdcs6blxhkw3bcgkksaf3byrsj4cbyrqgb4869k3ynap96";
};
buildInputs =
[ gtk2 perlXMLParser libxml2 gettext python libxml2Python docbook5
2017-08-31 02:04:07 +01:00
libxslt docbook_xsl libart_lgpl ]
++ stdenv.lib.optional withGNOME libgnomeui
++ stdenv.lib.optional stdenv.isDarwin gtk-mac-integration;
2017-08-31 02:04:07 +01:00
nativeBuildInputs = [ autoconf automake libtool pkgconfig intltool perl ];
2017-08-31 02:04:07 +01:00
preConfigure = ''
NOCONFIGURE=1 ./autogen.sh # autoreconfHook is not enough
'';
configureFlags = stdenv.lib.optionalString withGNOME "--enable-gnome";
2017-08-31 02:04:07 +01:00
hardeningDisable = [ "format" ];
2012-07-15 16:01:27 +01:00
# This file should normally require a gtk-update-icon-cache -q /usr/share/icons/hicolor command
# It have no reasons to exist in a redistribuable package
postInstall = ''
rm $out/share/icons/hicolor/icon-theme.cache
'';
meta = {
description = "Gnome Diagram drawing software";
homepage = http://live.gnome.org/Dia;
maintainers = with stdenv.lib.maintainers; [raskin];
2017-08-31 01:01:47 +01:00
platforms = stdenv.lib.platforms.unix;
};
}