Merge remote-tracking branch 'origin/master' into staging

Conflicts:
	pkgs/misc/vim-plugins/default.nix
This commit is contained in:
Eelco Dolstra
2014-07-22 11:00:00 +02:00
179 changed files with 2646 additions and 601 deletions
+41 -5
View File
@@ -1,4 +1,29 @@
{stdenv, fetchurl }:
{ stdenv, fetchurl
# optional:
, pkgconfig ? null # most of the extra deps need pkgconfig to be found
, curl ? null
, iptables ? null
, libcredis ? null
, libdbi ? null
, libgcrypt ? null
, libmemcached ? null, cyrus_sasl ? null
, libmodbus ? null
, libnotify ? null, gdk_pixbuf ? null
, liboping ? null
, libpcap ? null
, libsigrok ? null
, libvirt ? null
, libxml2 ? null
, lm_sensors ? null
, lvm2 ? null
, mysql ? null
, postgresql ? null
, protobufc ? null
, rabbitmq-c ? null
, rrdtool ? null
, varnish ? null
, yajl ? null
}:
stdenv.mkDerivation rec {
name = "collectd-5.4.1";
@@ -10,10 +35,21 @@ stdenv.mkDerivation rec {
NIX_LDFLAGS = "-lgcc_s"; # for pthread_cancel
meta = {
buildInputs = [
pkgconfig curl iptables libcredis libdbi libgcrypt libmemcached cyrus_sasl
libmodbus libnotify gdk_pixbuf liboping libpcap libsigrok libvirt
lm_sensors libxml2 lvm2 mysql postgresql protobufc rabbitmq-c rrdtool
varnish yajl
];
# for some reason libsigrok isn't auto-detected
configureFlags = stdenv.lib.optional (libsigrok != null) "--with-libsigrok";
meta = with stdenv.lib; {
description = "Daemon which collects system performance statistics periodically";
homepage = http://collectd.org;
description = "collectd is a daemon which collects system performance statistics periodically";
platforms = stdenv.lib.platforms.linux;
license = "GPLv2";
license = licenses.gpl2;
platforms = platforms.linux;
maintainers = [ maintainers.bjornfor ];
};
}
@@ -1,24 +0,0 @@
diff -Naur efibootmgr-0.5.4-orig/src/lib/efi.c efibootmgr-0.5.4/src/lib/efi.c
--- efibootmgr-0.5.4-orig/src/lib/efi.c 2008-01-03 15:34:01.000000000 +0100
+++ efibootmgr-0.5.4/src/lib/efi.c 2012-03-13 22:25:51.000000000 +0100
@@ -495,7 +495,8 @@
int rc, edd_version=0;
uint8_t mbr_type=0, signature_type=0;
uint64_t start=0, size=0;
- efi_char16_t os_loader_path[40];
+ efi_char16_t *os_loader_path;
+ size_t os_loader_path_size;
memset(signature, 0, sizeof(signature));
@@ -535,7 +536,9 @@
signature,
mbr_type, signature_type);
- efichar_from_char(os_loader_path, opts.loader, sizeof(os_loader_path));
+ os_loader_path_size = sizeof(efi_char16_t) * (1 + strlen(opts.loader) / sizeof(char));
+ os_loader_path = malloc(os_loader_path_size);
+ efichar_from_char(os_loader_path, opts.loader, os_loader_path_size);
p += make_file_path_device_path (p, os_loader_path);
p += make_end_device_path (p);
+13 -17
View File
@@ -1,17 +1,15 @@
{stdenv, fetchurl, pciutils, perl, zlib}:
{ stdenv, fetchgit, perl, efivar, pciutils, zlib }:
let version = "0.5.4"; in
stdenv.mkDerivation {
stdenv.mkDerivation rec {
name = "efibootmgr-${version}";
version = "0.7.0";
buildInputs = [ pciutils zlib perl ];
buildInputs = [ perl efivar pciutils zlib ];
patches = [ ./arbitrary-filenames.patch ];
src = fetchurl {
url = "http://linux.dell.com/efibootmgr/permalink/efibootmgr-${version}.tar.gz";
sha256 = "0wcfgf8x4p4xfh38m9x3njwsxibm9bhnmvpjj94lj9sk9xxa8qmm";
src = fetchgit {
url = "git://github.com/vathpela/efibootmgr.git";
rev = "refs/tags/${name}";
sha256 = "1nazmqxppx2xa8clv4bjdb1b6gyyimgjdj85n2hmf1smqr8krrmz";
};
postPatch = ''
@@ -19,16 +17,14 @@ stdenv.mkDerivation {
--replace "/usr/bin/perl" "${perl}/bin/perl"
'';
preBuild = ''
export makeFlags="BINDIR=$out/sbin"
'';
installFlags = [ "BINDIR=$(out)/sbin" ];
meta = {
meta = with stdenv.lib; {
description = "A Linux user-space application to modify the Intel Extensible Firmware Interface (EFI) Boot Manager";
homepage = http://linux.dell.com/efibootmgr/;
license = "GPLv2";
maintainers = [ stdenv.lib.maintainers.shlevy ];
platforms = stdenv.lib.platforms.linux;
license = licenses.gpl2;
maintainers = with maintainers; [ shlevy ];
platforms = platforms.linux;
};
}
+28
View File
@@ -0,0 +1,28 @@
{ stdenv, fetchgit, popt }:
stdenv.mkDerivation rec {
name = "efivar-${version}";
version = "0.10";
src = fetchgit {
url = "git://github.com/vathpela/efivar.git";
rev = "refs/tags/${version}";
sha256 = "04fznbmrf860b4d4i8rshx3mgwbx06v187wf1rddvxxnpkq8920w";
};
buildInputs = [ popt ];
installFlags = [
"libdir=$(out)/lib"
"mandir=$(out)/share/man"
"includedir=$(out)/include"
"bindir=$(out)/bin"
];
meta = with stdenv.lib; {
homepage = http://github.com/vathpela/efivar;
description = "Tools and library to manipulate EFI variables";
platforms = platforms.linux;
license = licenses.lgpl21;
};
}