uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
79
pkgs/servers/corosync/default.nix
Normal file
79
pkgs/servers/corosync/default.nix
Normal file
|
|
@ -0,0 +1,79 @@
|
|||
{ lib, stdenv, fetchurl, makeWrapper, pkg-config, kronosnet, nss, nspr, libqb
|
||||
, systemd, dbus, rdma-core, libstatgrab, net-snmp
|
||||
, enableDbus ? false
|
||||
, enableInfiniBandRdma ? false
|
||||
, enableMonitoring ? false
|
||||
, enableSnmp ? false
|
||||
}:
|
||||
|
||||
with lib;
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "corosync";
|
||||
version = "3.1.6";
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://build.clusterlabs.org/corosync/releases/${pname}-${version}.tar.gz";
|
||||
sha256 = "sha256-ym7TK01/M+1hSvzodg/ljQ3pLGi1ddSWnrrNiS89Hic=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ makeWrapper pkg-config ];
|
||||
|
||||
buildInputs = [
|
||||
kronosnet nss nspr libqb systemd.dev
|
||||
] ++ optional enableDbus dbus
|
||||
++ optional enableInfiniBandRdma rdma-core
|
||||
++ optional enableMonitoring libstatgrab
|
||||
++ optional enableSnmp net-snmp;
|
||||
|
||||
configureFlags = [
|
||||
"--sysconfdir=/etc"
|
||||
"--localstatedir=/var"
|
||||
"--with-logdir=/var/log/corosync"
|
||||
"--enable-watchdog"
|
||||
"--enable-qdevices"
|
||||
# allows Type=notify in the systemd service
|
||||
"--enable-systemd"
|
||||
] ++ optional enableDbus "--enable-dbus"
|
||||
++ optional enableInfiniBandRdma "--enable-rdma"
|
||||
++ optional enableMonitoring "--enable-monitoring"
|
||||
++ optional enableSnmp "--enable-snmp";
|
||||
|
||||
installFlags = [
|
||||
"sysconfdir=$(out)/etc"
|
||||
"localstatedir=$(out)/var"
|
||||
"COROSYSCONFDIR=$(out)/etc/corosync"
|
||||
"INITDDIR=$(out)/etc/init.d"
|
||||
"LOGROTATEDIR=$(out)/etc/logrotate.d"
|
||||
];
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
preConfigure = optionalString enableInfiniBandRdma ''
|
||||
# configure looks for the pkg-config files
|
||||
# of librdmacm and libibverbs
|
||||
# Howver, rmda-core does not provide a pkg-config file
|
||||
# We give the flags manually here:
|
||||
export rdmacm_LIBS=-lrdmacm
|
||||
export rdmacm_CFLAGS=" "
|
||||
export ibverbs_LIBS=-libverbs
|
||||
export ibverbs_CFLAGS=" "
|
||||
'';
|
||||
|
||||
postInstall = ''
|
||||
wrapProgram $out/bin/corosync-blackbox \
|
||||
--prefix PATH ":" "$out/sbin:${libqb}/sbin"
|
||||
'';
|
||||
|
||||
passthru.tests = {
|
||||
inherit (nixosTests) pacemaker;
|
||||
};
|
||||
|
||||
meta = {
|
||||
homepage = "http://corosync.org/";
|
||||
description = "A Group Communication System with features for implementing high availability within applications";
|
||||
license = licenses.bsd3;
|
||||
platforms = platforms.linux;
|
||||
maintainers = with maintainers; [ montag451 ryantm ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue