Merge pull request #329823 from ExpidusOS/fix/pkgsllvm/elfutils
[NixPkgs.git] / pkgs / desktops / gnome-2 / platform / libglade / default.nix
blobdc6e192ed1616e060666807fde37da0c187880fb
1 { lib, stdenv, fetchurl, pkg-config, gtk2, libxml2, gettext }:
3 stdenv.mkDerivation rec {
4   pname = "libglade";
5   version = "2.6.4";
7   src = fetchurl {
8     url = "mirror://gnome/sources/libglade/${lib.versions.majorMinor version}/libglade-${version}.tar.bz2";
9     sha256 = "1v2x2s04jry4gpabws92i0wq2ghd47yr5n9nhgnkd7c38xv1wdk4";
10   };
12   outputs = [ "out" "dev" ];
14   strictDeps = true;
16   nativeBuildInputs = [ pkg-config gettext ];
17   buildInputs = [ gtk2 ];
18   propagatedBuildInputs = [ libxml2 ];
20   postPatch = ''
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"
25   '';
27   NIX_LDFLAGS = "-lgmodule-2.0";