corosync-qnetd package and service module working
This commit is contained in:
@@ -1,40 +1,49 @@
|
||||
#{ 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;
|
||||
{
|
||||
lib,
|
||||
pkgs,
|
||||
stdenv
|
||||
} :
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "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
|
||||
];
|
||||
nativeBuildInputs = with pkgs; [
|
||||
autoconf
|
||||
automake
|
||||
libtool
|
||||
pkg-config
|
||||
libqb
|
||||
systemd
|
||||
];
|
||||
|
||||
# buildInputs = with pkgs; [
|
||||
# corosync
|
||||
# ];
|
||||
buildInputs = with pkgs; [
|
||||
corosync
|
||||
nss
|
||||
];
|
||||
|
||||
configurePhase = ''
|
||||
./autogen.sh
|
||||
./configure \
|
||||
--prefix=$out \
|
||||
--enable-systemd \
|
||||
--disable-upstart
|
||||
'';
|
||||
configurePhase = ''
|
||||
./autogen.sh
|
||||
./configure \
|
||||
--prefix=$out \
|
||||
--enable-systemd \
|
||||
--disable-upstart
|
||||
'';
|
||||
|
||||
buildPhase = ''
|
||||
make
|
||||
'';
|
||||
buildPhase = ''
|
||||
make
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "daemon for quorum on clusters";
|
||||
homepage = "https://github.com/corosync/corosync-qdevice";
|
||||
platforms = lib.platforms.linux;
|
||||
license = lib.licenses.gpl3;
|
||||
};
|
||||
}
|
||||
|
||||
4
packages/default.nix
Normal file
4
packages/default.nix
Normal file
@@ -0,0 +1,4 @@
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
corosync-qdevice = pkgs.callPackage ./corosync-qdevice.nix {};
|
||||
}
|
||||
Reference in New Issue
Block a user