nixpkgs/pkgs/development/libraries/glib-networking/default.nix
Jan Tojnar 84f318e323
glib-networking: drop unnecessary flag
auto_features are now enabled by default.
2019-09-02 18:57:46 +02:00

64 lines
1.2 KiB
Nix

{ stdenv
, fetchurl
, meson
, ninja
, pkgconfig
, glib
, gettext
, python3
, gnutls
, p11-kit
, libproxy
, gnome3
, gsettings-desktop-schemas
}:
stdenv.mkDerivation rec {
pname = "glib-networking";
version = "2.60.3";
src = fetchurl {
url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
sha256 = "1mfw44qpmwvz6yzj8c6spx6z357wrmkk15byrkc5byagd82860fm";
};
outputs = [ "out" "dev" ]; # to deal with propagatedBuildInputs
PKG_CONFIG_GIO_2_0_GIOMODULEDIR = "${placeholder "out"}/lib/gio/modules";
postPatch = ''
chmod +x meson_post_install.py # patchShebangs requires executable file
patchShebangs meson_post_install.py
'';
nativeBuildInputs = [
meson
ninja
pkgconfig
gettext
python3 # for install_script
];
propagatedBuildInputs = [
glib
gnutls
p11-kit
libproxy
gsettings-desktop-schemas
];
doCheck = false; # tests need to access the certificates (among other things)
passthru = {
updateScript = gnome3.updateScript {
packageName = pname;
};
};
meta = with stdenv.lib; {
description = "Network-related giomodules for glib";
license = licenses.lgpl2Plus;
platforms = platforms.unix;
};
}