Merge branch 'master' into staging
This commit is contained in:
@@ -1,41 +1,44 @@
|
||||
{ stdenv, fetchurl, fetchpatch, darwin
|
||||
# optional:
|
||||
, pkgconfig ? null # most of the extra deps need pkgconfig to be found
|
||||
, curl ? null
|
||||
, iptables ? null
|
||||
, jdk ? null
|
||||
, libatasmart ? null
|
||||
, libcredis ? null
|
||||
, libdbi ? null
|
||||
, libgcrypt ? null
|
||||
, libmemcached ? null, cyrus_sasl ? null
|
||||
, libmicrohttpd ? null
|
||||
, libmodbus ? null
|
||||
, libnotify ? null, gdk_pixbuf ? null
|
||||
, liboping ? null
|
||||
, libpcap ? null
|
||||
, libsigrok ? null
|
||||
, libvirt ? null
|
||||
, libxml2 ? null
|
||||
, libtool ? null
|
||||
, lm_sensors ? null
|
||||
, lvm2 ? null
|
||||
, mysql ? null
|
||||
, postgresql ? null
|
||||
, protobufc ? null
|
||||
, python ? null
|
||||
, rabbitmq-c ? null
|
||||
, riemann_c_client ? null
|
||||
, rrdtool ? null
|
||||
, udev ? null
|
||||
, varnish ? null
|
||||
, yajl ? null
|
||||
, net_snmp ? null
|
||||
, hiredis ? null
|
||||
, libmnl ? null
|
||||
, mosquitto ? null
|
||||
, rdkafka ? null
|
||||
, mongoc ? null
|
||||
, autoreconfHook
|
||||
, pkgconfig
|
||||
, curl
|
||||
, iptables
|
||||
, jdk
|
||||
, libapparmor
|
||||
, libatasmart
|
||||
, libcap_ng
|
||||
, libcredis
|
||||
, libdbi
|
||||
, libgcrypt
|
||||
, libmemcached, cyrus_sasl
|
||||
, libmicrohttpd
|
||||
, libmodbus
|
||||
, libnotify, gdk_pixbuf
|
||||
, liboping
|
||||
, libpcap
|
||||
, libsigrok
|
||||
, libvirt
|
||||
, libxml2
|
||||
, libtool
|
||||
, lm_sensors
|
||||
, lvm2
|
||||
, mysql
|
||||
, numactl
|
||||
, postgresql
|
||||
, protobufc
|
||||
, python
|
||||
, rabbitmq-c
|
||||
, riemann_c_client
|
||||
, rrdtool
|
||||
, udev
|
||||
, varnish
|
||||
, yajl
|
||||
, net_snmp
|
||||
, hiredis
|
||||
, libmnl
|
||||
, mosquitto
|
||||
, rdkafka
|
||||
, mongoc
|
||||
}:
|
||||
stdenv.mkDerivation rec {
|
||||
version = "5.8.1";
|
||||
@@ -46,10 +49,14 @@ stdenv.mkDerivation rec {
|
||||
sha256 = "1njk8hh56gb755xafsh7ahmqr9k2d4lam4ddj7s7fqz0gjigv5p7";
|
||||
};
|
||||
|
||||
# on 5.8.0: lvm2app.h:21:2: error: #warning "liblvm2app is deprecated, use D-Bus API instead." [-Werror=cpp]
|
||||
NIX_CFLAGS_COMPILE = [ "-Wno-error=cpp" ];
|
||||
patches = [
|
||||
(fetchpatch {
|
||||
url = "https://github.com/rpv-tomsk/collectd/commit/d5a3c020d33cc33ee8049f54c7b4dffcd123bf83.patch";
|
||||
sha256 = "1n65zw4d2k2bxapayaaw51ym7hy72a0cwi2abd8jgxcw3d0m5g15";
|
||||
})
|
||||
];
|
||||
|
||||
nativeBuildInputs = [ pkgconfig ];
|
||||
nativeBuildInputs = [ pkgconfig autoreconfHook ];
|
||||
buildInputs = [
|
||||
curl libdbi libgcrypt libmemcached
|
||||
cyrus_sasl libnotify gdk_pixbuf liboping libpcap libvirt
|
||||
@@ -60,12 +67,18 @@ stdenv.mkDerivation rec {
|
||||
] ++ stdenv.lib.optionals stdenv.isLinux [
|
||||
iptables libatasmart libcredis libmodbus libsigrok
|
||||
lm_sensors lvm2 rabbitmq-c udev net_snmp libmnl
|
||||
# those might be no longer required when https://github.com/NixOS/nixpkgs/pull/51767
|
||||
# is merged
|
||||
libapparmor numactl libcap_ng
|
||||
] ++ stdenv.lib.optionals stdenv.isDarwin [
|
||||
darwin.apple_sdk.frameworks.IOKit
|
||||
darwin.apple_sdk.frameworks.ApplicationServices
|
||||
];
|
||||
|
||||
configureFlags = [ "--localstatedir=/var" ];
|
||||
configureFlags = [
|
||||
"--localstatedir=/var"
|
||||
"--disable-werror"
|
||||
];
|
||||
|
||||
# do not create directories in /var during installPhase
|
||||
postConfigure = ''
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{ stdenv, go, systemd, polkit, fetchFromGitHub, m4, removeReferencesTo }:
|
||||
{ stdenv, systemd, polkit, fetchFromGitHub, buildGoPackage, m4}:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
buildGoPackage rec {
|
||||
name = "localtime-2017-11-07";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
@@ -9,14 +9,20 @@ stdenv.mkDerivation {
|
||||
rev = "2e7b4317c723406bd75b2a1d640219ab9f8090ce";
|
||||
sha256 = "04fyna8p7q7skzx9fzmncd6gx7x5pwa9jh8a84hpljlvj0kldfs8";
|
||||
};
|
||||
goPackagePath = "github.com/Stebalien/localtime";
|
||||
|
||||
buildInputs = [ go systemd polkit m4 removeReferencesTo ];
|
||||
disallowedRequisites = [ go ];
|
||||
buildInputs = [ systemd polkit m4 ];
|
||||
|
||||
makeFlags = [ "PREFIX=$(out)" ];
|
||||
|
||||
preFixup = ''
|
||||
find $out/bin -type f -exec remove-references-to -t ${go} '{}' +
|
||||
buildPhase = ''
|
||||
cd go/src/${goPackagePath}
|
||||
make localtimed
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $bin/bin
|
||||
install -Dm555 localtimed $bin/bin
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
|
||||
@@ -11,11 +11,11 @@ in
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "${pname}-${version}";
|
||||
version = "3.18.1";
|
||||
version = "3.19.1";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/balabit/${pname}/releases/download/${name}/${name}.tar.gz";
|
||||
sha256 = "1y1v16vvyirh0qv4wzczqp8d3llh6dl63lz3irwib1qhh7x56dyn";
|
||||
sha256 = "0y2ixmbl4af4yf0a56pmg1c00nh0yvlfwr9ck9nhxbdysylk3yaw";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ pkgconfig which ];
|
||||
|
||||
Reference in New Issue
Block a user