1{
2 lib,
3 stdenv,
4 fetchurl,
5 pkg-config,
6 gtk2,
7 libxml2,
8 gettext,
9}:
10
11stdenv.mkDerivation rec {
12 pname = "libglade";
13 version = "2.6.4";
14
15 src = fetchurl {
16 url = "mirror://gnome/sources/libglade/${lib.versions.majorMinor version}/libglade-${version}.tar.bz2";
17 sha256 = "1v2x2s04jry4gpabws92i0wq2ghd47yr5n9nhgnkd7c38xv1wdk4";
18 };
19
20 outputs = [
21 "out"
22 "dev"
23 ];
24
25 strictDeps = true;
26
27 nativeBuildInputs = [
28 pkg-config
29 gettext
30 ];
31 buildInputs = [ gtk2 ];
32 propagatedBuildInputs = [ libxml2 ];
33
34 postPatch = ''
35 # uses pkg-config in some places and uses the correct $PKG_CONFIG in some
36 # it's an ancient library so it has very old configure scripts and m4
37 substituteInPlace ./configure \
38 --replace "pkg-config" "$PKG_CONFIG"
39 '';
40
41 NIX_LDFLAGS = "-lgmodule-2.0";
42}