41 lines
752 B
Nix
41 lines
752 B
Nix
#{ stdenv, fetchgit, corosync, nss } :
|
|
{ pkgs ? import <nixpkgs> {} }:
|
|
pkgs.stdenv.mkDerivation rec {
|
|
name = "corosync-qdevice";
|
|
version = "3.0.3";
|
|
src = pkgs.fetchFromGitHub {
|
|
owner = "corosync";
|
|
repo = "corosync-qdevice";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-9FyLhcGHNW73Xao7JiODzgyDKIynEAHJUlNppX+nPfw=";
|
|
};
|
|
enableParallelBuilding = true;
|
|
|
|
nativeBuildInputs = with pkgs; [
|
|
nss
|
|
autoconf
|
|
automake
|
|
libtool
|
|
pkg-config
|
|
libqb
|
|
corosync
|
|
systemd
|
|
];
|
|
|
|
# buildInputs = with pkgs; [
|
|
# corosync
|
|
# ];
|
|
|
|
configurePhase = ''
|
|
./autogen.sh
|
|
./configure \
|
|
--prefix=$out \
|
|
--enable-systemd \
|
|
--disable-upstart
|
|
'';
|
|
|
|
buildPhase = ''
|
|
make
|
|
'';
|
|
}
|