libsoup: 2.62.2 → 2.64.2

This commit is contained in:
Jan Tojnar 2018-09-05 00:51:03 +00:00
parent 6182a3fe4d
commit f78203de37
No known key found for this signature in database
GPG Key ID: 7FAB2A15F7A607A4
2 changed files with 14 additions and 18 deletions

View File

@ -35,7 +35,7 @@ stdenv.mkDerivation rec {
buildInputs = [
gtk3 webkitgtk librsvg libnotify sqlite gsettings-desktop-schemas pcre gnome3.gcr
libxcb libpthreadstubs libXdmcp libxkbcommon epoxy at-spi2-core
(libsoup.override {gnomeSupport = true; valaSupport = true;})
(libsoup.override {gnomeSupport = true;})
] ++ stdenv.lib.optionals zeitgeistSupport [
zeitgeist
];

View File

@ -1,39 +1,35 @@
{ stdenv, fetchurl, glib, libxml2, pkgconfig, gnome3
, gnomeSupport ? true, sqlite, glib-networking, gobjectIntrospection
, valaSupport ? true, vala_0_40
, intltool, python3 }:
{ stdenv, fetchurl, glib, libxml2, meson, ninja, pkgconfig, gnome3
, gnomeSupport ? true, sqlite, glib-networking, gobjectIntrospection, vala
, libpsl, python3 }:
stdenv.mkDerivation rec {
name = "${pname}-${version}";
pname = "libsoup";
version = "2.62.2";
version = "2.64.2";
src = fetchurl {
url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${name}.tar.xz";
sha256 = "1dkrz1iwsswscayfmjxqv2q00b87snlq9nxdccn5vck0vbinylwy";
sha256 = "1il6lyrmfi0hfh3ysw8w1qzc1rdz0igkb7dv6d8g5mmilnac3pbm";
};
postPatch = ''
patchShebangs libsoup/
'' + stdenv.lib.optionalString valaSupport ''
substituteInPlace libsoup/Makefile.in --replace "\$(DESTDIR)\$(vapidir)" "\$(DESTDIR)\$(girdir)/../vala/vapi"
'';
outputs = [ "out" "dev" ];
buildInputs = [ python3 sqlite ];
nativeBuildInputs = [ pkgconfig intltool gobjectIntrospection ]
++ stdenv.lib.optionals valaSupport [ vala_0_40 ];
buildInputs = [ python3 sqlite libpsl ];
nativeBuildInputs = [ meson ninja pkgconfig gobjectIntrospection vala ];
propagatedBuildInputs = [ glib libxml2 ];
# glib-networking is a runtime dependency, not a compile-time dependency
configureFlags = [
"--disable-tls-check"
"--enable-vala=${if valaSupport then "yes" else "no"}"
"--with-gnome=${if gnomeSupport then "yes" else "no"}"
mesonFlags = [
"-Dtls_check=false" # glib-networking is a runtime dependency, not a compile-time dependency
"-Dgssapi=false"
"-Dvapi=true"
"-Dgnome=${if gnomeSupport then "true" else "false"}"
];
doCheck = false; # fails with "no: command not found"
doCheck = false; # ERROR:../tests/socket-test.c:37:do_unconnected_socket_test: assertion failed (res == SOUP_STATUS_OK): (2 == 200)
passthru = {
propagatedUserEnvPackages = [ glib-networking.out ];