Skip to content

Commit

Permalink
Merge branch 'staging'
Browse files Browse the repository at this point in the history
  • Loading branch information
fpletz committed Jan 23, 2017
2 parents 13d6681 + df67f58 commit e10cd27
Show file tree
Hide file tree
Showing 21 changed files with 110 additions and 139 deletions.
2 changes: 1 addition & 1 deletion pkgs/desktops/gnome-3/3.22/default.nix
Expand Up @@ -20,7 +20,7 @@ let
pkgs.desktop_file_utils pkgs.ibus
pkgs.shared_mime_info # for update-mime-database
glib # for gsettings
gtk3 # for gtk-update-icon-cache
gtk3.out # for gtk-update-icon-cache
glib_networking gvfs dconf gnome-backgrounds gnome_control_center
gnome-menus gnome_settings_daemon gnome_shell
gnome_themes_standard defaultIconTheme gnome-shell-extensions
Expand Down
2 changes: 2 additions & 0 deletions pkgs/development/libraries/gtk+/3.x.nix
Expand Up @@ -63,6 +63,8 @@ stdenv.mkDerivation rec {
postInstall = optionalString (!stdenv.isDarwin) ''
substituteInPlace "$out/lib/gtk-3.0/3.0.0/printbackends/libprintbackend-cups.la" \
--replace '-L${gmp.dev}/lib' '-L${gmp.out}/lib'
# The updater is needed for nixos env and it's tiny.
moveToOutput bin/gtk-update-icon-cache "$out"
'';

meta = with stdenv.lib; {
Expand Down
6 changes: 3 additions & 3 deletions pkgs/development/libraries/libmicrohttpd/default.nix
@@ -1,11 +1,11 @@
{ stdenv, fetchurl, libgcrypt, curl, gnutls, pkgconfig }:

stdenv.mkDerivation rec {
name = "libmicrohttpd-0.9.50";
name = "libmicrohttpd-0.9.52";

src = fetchurl {
url = "mirror://gnu/libmicrohttpd/${name}.tar.gz";
sha256 = "1mzbqr6sqisppz88mh73bbh5sw57g8l87qvhcjdx5pmbd183idni";
sha256 = "1smgxw6jv81yybg86bzr4c2sn7a31apf8q4zz0kpch9xfrp7yyal";
};

outputs = [ "out" "dev" "devdoc" "info" ];
Expand All @@ -31,7 +31,7 @@ stdenv.mkDerivation rec {

homepage = http://www.gnu.org/software/libmicrohttpd/;

maintainers = [ maintainers.eelco maintainers.vrthra ];
maintainers = with maintainers; [ eelco vrthra fpletz ];
platforms = platforms.linux;
};
}
4 changes: 2 additions & 2 deletions pkgs/development/libraries/libnetfilter_conntrack/default.nix
Expand Up @@ -2,11 +2,11 @@

stdenv.mkDerivation rec {
name = "libnetfilter_conntrack-${version}";
version = "1.0.5";
version = "1.0.6";

src = fetchurl {
url = "http://netfilter.org/projects/libnetfilter_conntrack/files/${name}.tar.bz2";
sha256 = "0fnpja3g8s38cp7ipija5pvhfgna1gybn0z2bl276nk08fppv7gw";
sha256 = "1svzyf3rq9nbrcw1jsricgyhh7x1am8iqn6kjr6mzrw42810ik7g";
};

buildInputs = [ libmnl ];
Expand Down
9 changes: 5 additions & 4 deletions pkgs/development/libraries/libnftnl/default.nix
@@ -1,20 +1,21 @@
{ stdenv, fetchurl, pkgconfig, libmnl }:

stdenv.mkDerivation rec {
name = "libnftnl-1.0.6";
name = "libnftnl-1.0.7";

src = fetchurl {
url = "http://netfilter.org/projects/libnftnl/files/${name}.tar.bz2";
sha256 = "0zmh190c7212zvzjsn5lm6pf399r4arq7dliiqq6grd174m96fxd";
sha256 = "10irjrylcfkbp11617yr19vpfhgl54w0kw02jhj0i1abqv5nxdlv";
};

buildInputs = [ pkgconfig libmnl ];
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ libmnl ];

meta = with stdenv.lib; {
description = "A userspace library providing a low-level netlink API to the in-kernel nf_tables subsystem";
homepage = http://netfilter.org/projects/libnftnl;
license = licenses.gpl2Plus;
platforms = platforms.linux;
maintainers = with maintainers; [ wkennington ];
maintainers = with maintainers; [ wkennington fpletz ];
};
}
4 changes: 2 additions & 2 deletions pkgs/development/libraries/liboping/default.nix
@@ -1,11 +1,11 @@
{ stdenv, fetchurl, ncurses ? null, perl ? null }:

stdenv.mkDerivation rec {
name = "liboping-1.8.0";
name = "liboping-1.9.0";

src = fetchurl {
url = "http://verplant.org/liboping/files/${name}.tar.bz2";
sha256 = "1nsvlsvapc64h0anip2hz5ydbgk3an94xqiaa9kivcw1r6193jqx";
sha256 = "0c1mdx9ixqypayhm617jjv9kr6y60nh3mnryafjzv23bnn41vfs4";
};

buildInputs = [ ncurses perl ];
Expand Down
17 changes: 9 additions & 8 deletions pkgs/development/libraries/libpcap/default.nix
@@ -1,15 +1,15 @@
{ stdenv, fetchurl, flex, bison }:

stdenv.mkDerivation rec {
name = "libpcap-1.7.4";
name = "libpcap-1.8.1";

src = fetchurl {
url = "http://www.tcpdump.org/release/${name}.tar.gz";
sha256 = "1c28ykkizd7jqgzrfkg7ivqjlqs9p6lygp26bsw2i0z8hwhi3lvs";
sha256 = "07jlhc66z76dipj4j5v3dig8x6h3k6cb36kmnmpsixf3zmlvqgb7";
};

nativeBuildInputs = [ flex bison ];

# We need to force the autodetection because detection doesn't
# work in pure build enviroments.
configureFlags =
Expand All @@ -22,16 +22,17 @@ stdenv.mkDerivation rec {
'';

preInstall = ''mkdir -p $out/bin'';

crossAttrs = {
# Stripping hurts in static libraries
dontStrip = true;
configureFlags = configureFlags ++ [ "ac_cv_linux_vers=2" ];
};

meta = {
meta = with stdenv.lib; {
homepage = http://www.tcpdump.org;
description = "Packet Capture Library";
platforms = stdenv.lib.platforms.unix;
platforms = platforms.unix;
maintainers = with maintainers; [ fpletz ];
};
}
4 changes: 2 additions & 2 deletions pkgs/development/libraries/libvirt-glib/default.nix
Expand Up @@ -6,11 +6,11 @@
let
inherit (pythonPackages) python pygobject2;
in stdenv.mkDerivation rec {
name = "libvirt-glib-0.2.3";
name = "libvirt-glib-1.0.0";

src = fetchurl {
url = "http://libvirt.org/sources/glib/${name}.tar.gz";
sha256 = "1pahj8qa7k2307sd57rwqwq1hijya02v0sxk91hl3cw48niimcf3";
sha256 = "0iwa5sdbii52pjpdm5j37f67sdmf0kpcky4liwhy1nf43k85i4fa";
};

buildInputs = [
Expand Down
4 changes: 2 additions & 2 deletions pkgs/development/libraries/libvirt/default.nix
Expand Up @@ -9,11 +9,11 @@
# if you update, also bump pythonPackages.libvirt or it will break
stdenv.mkDerivation rec {
name = "libvirt-${version}";
version = "2.5.0";
version = "3.0.0";

src = fetchurl {
url = "http://libvirt.org/sources/${name}.tar.xz";
sha256 = "07nbh6zhaxx5i1s1acnppf8rzkzb2ppgv35jw7grbbnnpzpzz7c1";
sha256 = "0php6wxjcilpir0miwg06yd2ha25zi9fv2apvvgv5c8k1svjd7cx";
};

patches = [ ./build-on-bsd.patch ];
Expand Down
14 changes: 8 additions & 6 deletions pkgs/os-specific/linux/conntrack-tools/default.nix
@@ -1,25 +1,27 @@
{ fetchurl, stdenv, flex, bison, pkgconfig, libmnl, libnfnetlink
, libnetfilter_conntrack, libnetfilter_queue, libnetfilter_cttimeout
, libnetfilter_cthelper }:
, libnetfilter_cthelper, systemd }:

stdenv.mkDerivation rec {
name = "conntrack-tools-${version}";
version = "1.4.3";
version = "1.4.4";

src = fetchurl {
url = "http://www.netfilter.org/projects/conntrack-tools/files/${name}.tar.bz2";
sha256 = "0mrzrzp6y41pmxc6ixc4fkgz6layrpwsmzb522adzzkc6mhcqg5g";
sha256 = "0v5spmlcw5n6va8z34f82vcpynadb0b54pnjazgpadf0qkyg9jmp";
};

buildInputs = [ libmnl libnfnetlink libnetfilter_conntrack libnetfilter_queue
libnetfilter_cttimeout libnetfilter_cthelper ];
buildInputs = [
libmnl libnfnetlink libnetfilter_conntrack libnetfilter_queue
libnetfilter_cttimeout libnetfilter_cthelper systemd
];
nativeBuildInputs = [ flex bison pkgconfig ];

meta = with stdenv.lib; {
homepage = http://conntrack-tools.netfilter.org/;
description = "Connection tracking userspace tools";
platforms = platforms.linux;
license = licenses.gpl2Plus;
maintainers = with maintainers; [ nckx ];
maintainers = with maintainers; [ nckx fpletz ];
};
}
14 changes: 9 additions & 5 deletions pkgs/os-specific/linux/iptables/default.nix
@@ -1,4 +1,5 @@
{stdenv, fetchurl, bison, flex, libnetfilter_conntrack, libnftnl, libmnl}:
{ stdenv, fetchurl, bison, flex
, libnetfilter_conntrack, libnftnl, libmnl }:

stdenv.mkDerivation rec {
name = "iptables-${version}";
Expand All @@ -9,9 +10,9 @@ stdenv.mkDerivation rec {
sha256 = "0q0w1x4aijid8wj7dg1ny9fqwll483f1sqw7kvkskd8q1c52mdsb";
};

nativeBuildInputs = [bison flex];
nativeBuildInputs = [ bison flex ];

buildInputs = [libnetfilter_conntrack libnftnl libmnl];
buildInputs = [ libnetfilter_conntrack libnftnl libmnl ];

preConfigure = ''
export NIX_LDFLAGS="$NIX_LDFLAGS -lmnl -lnftnl"
Expand All @@ -22,10 +23,13 @@ stdenv.mkDerivation rec {
--enable-shared
'';

meta = {
outputs = [ "out" "dev" ];

meta = with stdenv.lib; {
description = "A program to configure the Linux IP packet filtering ruleset";
homepage = http://www.netfilter.org/projects/iptables/index.html;
platforms = stdenv.lib.platforms.linux;
platforms = platforms.linux;
maintainers = with maintainers; [ fpletz ];
downloadPage = "http://www.netfilter.org/projects/iptables/files/";
updateWalker = true;
inherit version;
Expand Down
10 changes: 6 additions & 4 deletions pkgs/os-specific/linux/nftables/default.nix
@@ -1,22 +1,24 @@
{ stdenv, fetchurl, pkgconfig, docbook2x, docbook_xml_dtd_45
, flex, bison, libmnl, libnftnl, gmp, readline }:
, flex, bison, libmnl, libnftnl, gmp, readline, iptables }:

stdenv.mkDerivation rec {
name = "nftables-0.6";
name = "nftables-0.7";

src = fetchurl {
url = "http://netfilter.org/projects/nftables/files/${name}.tar.bz2";
sha256 = "0bbcrn9nz75daic8bq7rspvcw3ck7l82vqcvkyyg4mhwbxjn5pny";
sha256 = "0hzdqigdx4i6jbpxbdyq4zy4p4waqn8l6vvz7685ikh1v0wr4qzy";
};

configureFlags = [
"CONFIG_MAN=y"
"DB2MAN=docbook2man"
"--with-xtables"
];

XML_CATALOG_FILES = "${docbook_xml_dtd_45}/xml/dtd/docbook/catalog.xml";

buildInputs = [ pkgconfig docbook2x flex bison libmnl libnftnl gmp readline ];
nativeBuildInputs = [ pkgconfig docbook2x flex bison ];
buildInputs = [ libmnl libnftnl gmp readline iptables ];

meta = with stdenv.lib; {
description = "The project that aims to replace the existing {ip,ip6,arp,eb}tables framework";
Expand Down
22 changes: 6 additions & 16 deletions pkgs/os-specific/linux/util-linux/default.nix
@@ -1,4 +1,5 @@
{ lib, stdenv, fetchurl, pkgconfig, zlib, libseccomp, fetchpatch, autoreconfHook, ncurses ? null, perl ? null, pam, systemd, minimal ? false }:
{ lib, stdenv, fetchurl, pkgconfig, zlib, fetchpatch, shadow
, ncurses ? null, perl ? null, pam, systemd, minimal ? false }:

stdenv.mkDerivation rec {
name = "util-linux-${version}";
Expand All @@ -12,22 +13,13 @@ stdenv.mkDerivation rec {
sha256 = "1rzrmdrz51p9sy7vlw5qmj8pmqazm7hgcch5yq242mkvrikyln9c";
};

patches = [
./rtcwake-search-PATH-for-shutdown.patch
(fetchpatch {
name = "CVE-2016-2779.diff";
url = https://github.com/karelzak/util-linux/commit/8e4925016875c6a4f2ab4f833ba66f0fc57396a2.patch;
sha256 = "0kmigkq4s1b1ijrq8vcg2a5cw4qnm065m7cb1jn1q1f4x99ycy60";
})];
patches = [ ./rtcwake-search-PATH-for-shutdown.patch ];

outputs = [ "bin" "dev" "out" "man" ];

#FIXME: make it also work on non-nixos?
postPatch = ''
# Substituting store paths would create a circular dependency on systemd
substituteInPlace include/pathnames.h \
--replace "/bin/login" "/run/current-system/sw/bin/login" \
--replace "/sbin/shutdown" "/run/current-system/sw/bin/shutdown"
--replace "/bin/login" "${shadow}/bin/login"
'';

crossAttrs = {
Expand All @@ -54,11 +46,9 @@ stdenv.mkDerivation rec {

makeFlags = "usrbin_execdir=$(bin)/bin usrsbin_execdir=$(bin)/sbin";

# autoreconfHook is required for CVE-2016-2779
nativeBuildInputs = [ pkgconfig autoreconfHook ];
# libseccomp is required for CVE-2016-2779
nativeBuildInputs = [ pkgconfig ];
buildInputs =
[ zlib pam libseccomp ]
[ zlib pam ]
++ lib.optional (ncurses != null) ncurses
++ lib.optional (systemd != null) systemd
++ lib.optional (perl != null) perl;
Expand Down
25 changes: 15 additions & 10 deletions pkgs/servers/varnish/default.nix
@@ -1,25 +1,30 @@
{ stdenv, fetchurl, pcre, libxslt, groff, ncurses, pkgconfig, readline, python
, pythonPackages }:
{ stdenv, fetchurl, pcre, libxslt, groff, ncurses, pkgconfig, readline, libedit
, python, pythonPackages }:

stdenv.mkDerivation rec {
version = "4.0.3";
version = "5.0.0";
name = "varnish-${version}";

src = fetchurl {
url = "http://repo.varnish-cache.org/source/${name}.tar.gz";
sha256 = "01l2iypajkdanxpbvzfxm6vs4jay4dgw7lmchqidnivz15sa3fcl";
sha256 = "0jizha1mwqk42zmkrh80y07vfl78mg1d9pp5w83qla4xn9ras0ai";
};

buildInputs = [ pcre libxslt groff ncurses pkgconfig readline python
pythonPackages.docutils];
nativeBuildInputs = [ pkgconfig ];
buildInputs = [
pcre libxslt groff ncurses readline python libedit
pythonPackages.docutils
];

buildFlags = "localstatedir=/var/spool";

meta = {
outputs = [ "out" "dev" "man" ];

meta = with stdenv.lib; {
description = "Web application accelerator also known as a caching HTTP reverse proxy";
homepage = "https://www.varnish-cache.org";
license = stdenv.lib.licenses.bsd2;
maintainers = [ stdenv.lib.maintainers.garbas ];
platforms = stdenv.lib.platforms.linux;
license = licenses.bsd2;
maintainers = with maintainers; [ garbas fpletz ];
platforms = platforms.linux;
};
}
8 changes: 5 additions & 3 deletions pkgs/tools/misc/rrdtool/default.nix
Expand Up @@ -2,14 +2,16 @@
, tcl-8_5 }:

stdenv.mkDerivation rec {
name = "rrdtool-1.5.5";
name = "rrdtool-1.5.6";

src = fetchurl {
url = "http://oss.oetiker.ch/rrdtool/pub/${name}.tar.gz";
sha256 = "1xm6ikzx8iaa6r7v292k8s7srkzhnifamp1szkimgmh5ki26sa1s";
sha256 = "1s2cci80g6kbp5p77mkxpfxwvjm1802fw0bjfsa8yjv8g5a7fclq";
};

buildInputs = [ gettext perl pkgconfig libxml2 pango cairo groff ]
++ stdenv.lib.optional stdenv.isDarwin tcl-8_5;

postInstall = ''
# for munin and rrdtool support
mkdir -p $out/lib/perl5/site_perl/
Expand Down

0 comments on commit e10cd27

Please sign in to comment.