wgsl-analyzer: 0.8.1 -> 0.9.4 (#379484)
[NixPkgs.git] / pkgs / desktops / gnome-2 / platform / libglade / default.nix
blob73a94741479483d66cda6069a047d9400092ca36
2   lib,
3   stdenv,
4   fetchurl,
5   pkg-config,
6   gtk2,
7   libxml2,
8   gettext,
9 }:
11 stdenv.mkDerivation rec {
12   pname = "libglade";
13   version = "2.6.4";
15   src = fetchurl {
16     url = "mirror://gnome/sources/libglade/${lib.versions.majorMinor version}/libglade-${version}.tar.bz2";
17     sha256 = "1v2x2s04jry4gpabws92i0wq2ghd47yr5n9nhgnkd7c38xv1wdk4";
18   };
20   outputs = [
21     "out"
22     "dev"
23   ];
25   strictDeps = true;
27   nativeBuildInputs = [
28     pkg-config
29     gettext
30   ];
31   buildInputs = [ gtk2 ];
32   propagatedBuildInputs = [ libxml2 ];
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   '';
41   NIX_LDFLAGS = "-lgmodule-2.0";