2022-04-25 12:10:58 +00:00
|
|
|
{ lib, stdenv, fetchurl, pkg-config, gtk2, libxml2, gettext }:
|
2009-09-30 05:27:34 +00:00
|
|
|
|
2022-03-07 00:02:11 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "libglade";
|
|
|
|
version = "2.6.4";
|
2016-04-27 01:05:00 +00:00
|
|
|
|
2009-09-30 05:27:34 +00:00
|
|
|
src = fetchurl {
|
2022-03-07 00:02:11 +00:00
|
|
|
url = "mirror://gnome/sources/libglade/${lib.versions.majorMinor version}/libglade-${version}.tar.bz2";
|
2009-09-30 06:10:45 +00:00
|
|
|
sha256 = "1v2x2s04jry4gpabws92i0wq2ghd47yr5n9nhgnkd7c38xv1wdk4";
|
2009-09-30 05:27:34 +00:00
|
|
|
};
|
2016-04-27 01:05:00 +00:00
|
|
|
|
2016-08-29 00:30:01 +00:00
|
|
|
outputs = [ "out" "dev" ];
|
2016-04-27 01:05:00 +00:00
|
|
|
|
2023-11-09 02:00:47 +00:00
|
|
|
strictDeps = true;
|
2019-01-22 16:31:46 +00:00
|
|
|
|
2023-11-09 02:00:47 +00:00
|
|
|
nativeBuildInputs = [ pkg-config gettext ];
|
|
|
|
buildInputs = [ gtk2 ];
|
2009-11-04 09:17:27 +00:00
|
|
|
propagatedBuildInputs = [ libxml2 ];
|
2023-11-09 02:00:47 +00:00
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
# uses pkg-config in some places and uses the correct $PKG_CONFIG in some
|
|
|
|
# it's an ancient library so it has very old configure scripts and m4
|
|
|
|
substituteInPlace ./configure \
|
|
|
|
--replace "pkg-config" "$PKG_CONFIG"
|
|
|
|
'';
|
|
|
|
|
|
|
|
NIX_LDFLAGS = "-lgmodule-2.0";
|
2009-09-30 05:27:34 +00:00
|
|
|
}
|