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

38 lines
1.2 KiB
Nix
Raw Normal View History

{stdenv, fetchurl, gtk2, pkgconfig, perl, perlXMLParser, libxml2, gettext
, python, libxml2Python, docbook5, docbook_xsl, libxslt, intltool, libart_lgpl
, withGNOME ? false, libgnomeui }:
stdenv.mkDerivation rec {
2015-04-05 05:22:12 +00:00
name = "dia-${minVer}.3";
minVer = "0.97";
2015-04-05 05:22:12 +00:00
src = fetchurl {
url = "mirror://gnome/sources/dia/${minVer}/${name}.tar.xz";
2014-10-07 05:26:48 +00:00
sha256 = "0d3x6w0l6fwd0l8xx06y1h56xf8ss31yzia3a6xr9y28xx44x492";
};
buildInputs =
[ gtk2 perlXMLParser libxml2 gettext python libxml2Python docbook5
libxslt docbook_xsl libart_lgpl
] ++ stdenv.lib.optional withGNOME libgnomeui;
nativeBuildInputs = [ pkgconfig intltool perl ];
configureFlags = stdenv.lib.optionalString withGNOME "--enable-gnome";
2014-10-07 05:26:48 +00:00
patches = [ ];
2012-07-15 15:01:27 +00: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 00:01:47 +00:00
platforms = stdenv.lib.platforms.unix;
};
}