3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/libraries/glib-networking/default.nix

51 lines
1.4 KiB
Nix
Raw Normal View History

2018-03-14 02:46:24 +00:00
{ stdenv, fetchurl, fetchpatch, meson, ninja, pkgconfig, glib, gettext, gnutls, p11-kit, libproxy, gnome3
, gsettings-desktop-schemas }:
let
2018-03-03 01:40:53 +00:00
pname = "glib-networking";
2018-03-13 01:03:18 +00:00
version = "2.56.0";
in
stdenv.mkDerivation rec {
2018-03-03 01:40:53 +00:00
name = "${pname}-${version}";
src = fetchurl {
2018-03-03 01:40:53 +00:00
url = "mirror://gnome/sources/${pname}/${gnome3.versionBranch version}/${name}.tar.xz";
2018-03-13 01:03:18 +00:00
sha256 = "14vw8xwajd7m31bpavg2psk693plhjikwpk8bzf3jl1fmsy11za7";
};
outputs = [ "out" "dev" ]; # to deal with propagatedBuildInputs
2018-03-14 02:46:24 +00:00
patches = [
# Use GNUTLS system trust for certificates
(fetchpatch {
url = https://git.gnome.org/browse/glib-networking/patch/?id=f1c8feee014007cc913b71357acb609f8d1200df;
sha256 = "1rbxqsrcb5if3xs2d18pqzd9xnjysdj715ijc41n5w326fsawg7i";
})
];
PKG_CONFIG_GIO_2_0_GIOMODULEDIR = "lib/gio/modules";
2018-03-14 02:46:24 +00:00
postPatch = ''
chmod +x meson_post_install.py # patchShebangs requires executable file
patchShebangs meson_post_install.py
'';
2018-03-14 02:46:24 +00:00
nativeBuildInputs = [ meson ninja pkgconfig gettext ];
propagatedBuildInputs = [ glib gnutls p11-kit libproxy gsettings-desktop-schemas ];
doCheck = false; # tests need to access the certificates (among other things)
2018-03-03 01:40:53 +00:00
passthru = {
updateScript = gnome3.updateScript {
packageName = pname;
};
};
meta = with stdenv.lib; {
description = "Network-related giomodules for glib";
license = licenses.lgpl2Plus;
platforms = platforms.unix;
};
}