corosync-qnetd package and service module working

This commit is contained in:
2025-09-09 22:45:23 +02:00
parent 9bf0ad396f
commit 583dd62731
3 changed files with 113 additions and 35 deletions

View File

@@ -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;
};
}