diff --git a/packages/corosync-qdevice.nix b/packages/corosync-qdevice.nix new file mode 100644 index 0000000..5e2989e --- /dev/null +++ b/packages/corosync-qdevice.nix @@ -0,0 +1,40 @@ +#{ stdenv, fetchgit, corosync, nss } : +{ pkgs ? import {} }: +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 + ''; +} diff --git a/packages/result b/packages/result new file mode 120000 index 0000000..17bb002 --- /dev/null +++ b/packages/result @@ -0,0 +1 @@ +/nix/store/7azph9v0lqnb3imkgvdlb0p8j98wy5vy-corosync-qdevice \ No newline at end of file