nixpkgs/pkgs/development/libraries/glib-networking/default.nix

45 lines
1.2 KiB
Nix
Raw Normal View History

2018-09-05 01:44:57 +01:00
{ stdenv, fetchurl, meson, ninja, pkgconfig, glib, gettext, python3, gnutls, p11-kit, libproxy, gnome3
, gsettings-desktop-schemas }:
let
2018-03-03 01:40:53 +00:00
pname = "glib-networking";
2018-09-05 01:44:57 +01:00
version = "2.58.0";
in
stdenv.mkDerivation rec {
2018-03-03 01:40:53 +00:00
name = "${pname}-${version}";
src = fetchurl {
url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${name}.tar.xz";
2018-09-05 01:44:57 +01:00
sha256 = "0s006gs9nsq6mg31spqha1jffzmp6qjh10y27h0fxf1iw1ah5ymx";
};
outputs = [ "out" "dev" ]; # to deal with propagatedBuildInputs
PKG_CONFIG_GIO_2_0_GIOMODULEDIR = "${placeholder "out"}/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
'';
nativeBuildInputs = [
meson ninja pkgconfig gettext
python3 # install_script
];
2018-03-14 02:46:24 +00:00
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;
};
}