1 { lib, stdenv, fetchurl, pkg-config, gtk2, libxml2, gettext }:
3 stdenv.mkDerivation rec {
8 url = "mirror://gnome/sources/libglade/${lib.versions.majorMinor version}/libglade-${version}.tar.bz2";
9 sha256 = "1v2x2s04jry4gpabws92i0wq2ghd47yr5n9nhgnkd7c38xv1wdk4";
12 outputs = [ "out" "dev" ];
16 nativeBuildInputs = [ pkg-config gettext ];
17 buildInputs = [ gtk2 ];
18 propagatedBuildInputs = [ libxml2 ];
21 # uses pkg-config in some places and uses the correct $PKG_CONFIG in some
22 # it's an ancient library so it has very old configure scripts and m4
23 substituteInPlace ./configure \
24 --replace "pkg-config" "$PKG_CONFIG"
27 NIX_LDFLAGS = "-lgmodule-2.0";