2013-12-05 16:12:00 +01:00
|
|
|
{ stdenv, fetchurl, pkgconfig, intltool, python, gobjectIntrospection
|
|
|
|
, glib, libxml2, sqlite, glib_networking
|
|
|
|
, gnomeSupport ? true, libgnome_keyring
|
2013-10-29 16:23:24 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2013-12-05 16:12:00 +01:00
|
|
|
name = "libsoup-2.44.2";
|
2013-10-29 16:23:24 +01:00
|
|
|
|
2013-12-05 16:12:00 +01:00
|
|
|
meta = {
|
|
|
|
description = "HTTP client/server library";
|
|
|
|
license = stdenv.lib.licenses.lgpl2Plus;
|
2013-10-29 16:23:24 +01:00
|
|
|
};
|
|
|
|
|
2013-12-05 16:12:00 +01:00
|
|
|
src = fetchurl {
|
|
|
|
url = mirror://gnome/sources/libsoup/2.44/libsoup-2.44.2.tar.xz;
|
|
|
|
sha256 = "1wwqsmi1jvidiqwbdnjl66nmk1yja8w9dxf9cz10zh56fjmvbr77";
|
|
|
|
};
|
2013-10-29 16:23:24 +01:00
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
substituteInPlace libsoup/tld-parser.py \
|
|
|
|
--replace "!/usr/bin/env python" "!${python}/bin/${python.executable}"
|
|
|
|
'';
|
2013-12-05 16:12:00 +01:00
|
|
|
|
|
|
|
nativeBuildInputs = [ pkgconfig intltool python gobjectIntrospection ];
|
|
|
|
|
2013-10-29 16:23:24 +01:00
|
|
|
propagatedBuildInputs = [ glib libxml2 sqlite ]
|
|
|
|
++ stdenv.lib.optionals gnomeSupport [ libgnome_keyring ];
|
2013-12-05 16:12:00 +01:00
|
|
|
|
2013-10-29 16:23:24 +01:00
|
|
|
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";
|
|
|
|
}
|