mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 03:17:13 +00:00
7ae520404f
Enable introspection Renamed from libsoup_2_40 to libsoup_2_44
36 lines
1 KiB
Nix
36 lines
1 KiB
Nix
{ stdenv, fetchurl, pkgconfig, intltool, python, gobjectIntrospection
|
|
, glib, libxml2, sqlite, glib_networking
|
|
, gnomeSupport ? true, libgnome_keyring
|
|
}:
|
|
|
|
stdenv.mkDerivation {
|
|
name = "libsoup-2.44.2";
|
|
|
|
meta = {
|
|
description = "HTTP client/server library";
|
|
license = stdenv.lib.licenses.lgpl2Plus;
|
|
};
|
|
|
|
src = fetchurl {
|
|
url = mirror://gnome/sources/libsoup/2.44/libsoup-2.44.2.tar.xz;
|
|
sha256 = "1wwqsmi1jvidiqwbdnjl66nmk1yja8w9dxf9cz10zh56fjmvbr77";
|
|
};
|
|
|
|
preConfigure = ''
|
|
substituteInPlace libsoup/tld-parser.py \
|
|
--replace "!/usr/bin/env python" "!${python}/bin/${python.executable}"
|
|
'';
|
|
|
|
nativeBuildInputs = [ pkgconfig intltool python gobjectIntrospection ];
|
|
|
|
propagatedBuildInputs = [ glib libxml2 sqlite ]
|
|
++ stdenv.lib.optionals gnomeSupport [ libgnome_keyring ];
|
|
|
|
passthru.propagatedUserEnvPackages = [ glib_networking ];
|
|
|
|
# glib_networking is a runtime dependency, not a compile-time dependency
|
|
configureFlags = "--disable-tls-check";
|
|
|
|
NIX_CFLAGS_COMPILE = stdenv.lib.optionalString stdenv.isDarwin "-lintl";
|
|
}
|