networkmanager: 1.10.0 -> 1.10.2

This commit is contained in:
adisbladis 2018-01-27 20:03:09 +08:00
parent 1f80e7384e
commit 405e53ab71
No known key found for this signature in database
GPG key ID: ED58F95069B004F5
3 changed files with 8 additions and 2 deletions

View file

@ -9,11 +9,11 @@ stdenv.mkDerivation rec {
name = "network-manager-${version}";
pname = "NetworkManager";
major = "1.10";
version = "${major}.0";
version = "${major}.2";
src = fetchurl {
url = "mirror://gnome/sources/${pname}/${major}/${pname}-${version}.tar.xz";
sha256 = "1ph45rqpl8p9k4rirhss0hpf104clm8fp322p6kh6q75y06ddfwa";
sha256 = "0nv2jm2lsidlrzn4dkbc5rpj8ma4cpzjqz8z8dmwkqvh0zsk970n";
};
outputs = [ "out" "dev" ];

View file

@ -18,6 +18,9 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ intltool pkgconfig ];
# Fixes deprecation errors with networkmanager 1.10.2
NIX_CFLAGS_COMPILE = "-Wno-deprecated-declarations";
configureFlags = [
"${if withGnome then "--with-gnome" else "--without-gnome"}"
"--disable-static"

View file

@ -21,6 +21,9 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ intltool pkgconfig ];
# Fixes deprecation errors with networkmanager 1.10.2
NIX_CFLAGS_COMPILE = "-Wno-deprecated-declarations";
preConfigure = ''
substituteInPlace "configure" \
--replace "/sbin/sysctl" "${procps}/bin/sysctl"