libsoup: add updateScript

+16 -7
+16 -7
pkgs/development/libraries/libsoup/default.nix
··· 1 - { stdenv, fetchurl, fetchpatch, glib, libxml2, pkgconfig 1 + { stdenv, fetchurl, fetchpatch, glib, libxml2, pkgconfig, gnome3 2 2 , gnomeSupport ? true, libgnome-keyring3, sqlite, glib-networking, gobjectIntrospection 3 3 , valaSupport ? true, vala_0_38 4 4 , libintlOrEmpty 5 5 , intltool, python }: 6 6 let 7 - majorVersion = "2.60"; 8 - version = "${majorVersion}.2"; 7 + pname = "libsoup"; 8 + version = "2.60.2"; 9 9 in 10 - stdenv.mkDerivation { 11 - name = "libsoup-${version}"; 10 + stdenv.mkDerivation rec { 11 + name = "${pname}-${version}"; 12 12 13 13 src = fetchurl { 14 - url = "mirror://gnome/sources/libsoup/${majorVersion}/libsoup-${version}.tar.xz"; 14 + url = "mirror://gnome/sources/${pname}/${gnome3.versionBranch version}/${name}.tar.xz"; 15 15 sha256 = "7263cfe18872e2e652c196f5667e514616d9c97c861dfca82a65a55f45f0da01"; 16 16 }; 17 17 ··· 38 38 nativeBuildInputs = [ pkgconfig ]; 39 39 propagatedBuildInputs = [ glib libxml2 gobjectIntrospection ] 40 40 ++ stdenv.lib.optionals gnomeSupport [ libgnome-keyring3 ]; 41 - passthru.propagatedUserEnvPackages = [ glib-networking.out ]; 42 41 43 42 # glib-networking is a runtime dependency, not a compile-time dependency 44 43 configureFlags = "--disable-tls-check" ··· 47 46 48 47 NIX_CFLAGS_COMPILE = stdenv.lib.optionalString stdenv.isDarwin "-lintl"; 49 48 49 + passthru = { 50 + propagatedUserEnvPackages = [ glib-networking.out ]; 51 + updateScript = gnome3.updateScript { 52 + packageName = pname; 53 + }; 54 + }; 55 + 50 56 meta = { 57 + description = "HTTP client/server library for GNOME"; 58 + homepage = https://wiki.gnome.org/Projects/libsoup; 59 + license = stdenv.lib.licenses.gpl2; 51 60 inherit (glib.meta) maintainers platforms; 52 61 }; 53 62 }