forked from mirrors/nixpkgs
9bb3fccb5b
continuation of #109595 pkgconfig was aliased in 2018, however, it remained in all-packages.nix due to its wide usage. This cleans up the remaining references to pkgs.pkgsconfig and moves the entry to aliases.nix. python3Packages.pkgconfig remained unchanged because it's the canonical name of the upstream package on pypi.
40 lines
1.2 KiB
Nix
40 lines
1.2 KiB
Nix
{ lib, stdenv, fetchgit, autoconf, automake, libtool, gtk2, pkg-config, perlPackages,
|
|
libxml2, gettext, python, libxml2Python, docbook5, docbook_xsl,
|
|
libxslt, intltool, libart_lgpl, withGNOME ? false, libgnomeui,
|
|
gtk-mac-integration-gtk2 }:
|
|
|
|
stdenv.mkDerivation {
|
|
pname = "dia";
|
|
version = "0.97.3.20170622";
|
|
|
|
src = fetchgit {
|
|
url = "https://gitlab.gnome.org/GNOME/dia.git";
|
|
rev = "b86085dfe2b048a2d37d587adf8ceba6fb8bc43c";
|
|
sha256 = "1fyxfrzdcs6blxhkw3bcgkksaf3byrsj4cbyrqgb4869k3ynap96";
|
|
};
|
|
|
|
buildInputs =
|
|
[ gtk2 libxml2 gettext python libxml2Python docbook5
|
|
libxslt docbook_xsl libart_lgpl ]
|
|
++ lib.optional withGNOME libgnomeui
|
|
++ lib.optional stdenv.isDarwin gtk-mac-integration-gtk2;
|
|
|
|
nativeBuildInputs = [ autoconf automake libtool pkg-config intltool ]
|
|
++ (with perlPackages; [ perl XMLParser ]);
|
|
|
|
preConfigure = ''
|
|
NOCONFIGURE=1 ./autogen.sh # autoreconfHook is not enough
|
|
'';
|
|
configureFlags = lib.optional withGNOME "--enable-gnome";
|
|
|
|
hardeningDisable = [ "format" ];
|
|
|
|
meta = with lib; {
|
|
description = "Gnome Diagram drawing software";
|
|
homepage = "http://live.gnome.org/Dia";
|
|
maintainers = with maintainers; [ raskin ];
|
|
license = licenses.gpl2;
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|