Files
etherlab-nix/pdcom.nix
2023-08-16 08:42:22 +03:00

78 lines
1.8 KiB
Nix

{
pkgs,
lib,
stdenv
}:
with pkgs;
let
version="stable-3.0";
#version="5.1.0";
#version="stable-5.0";
#version="master";
in
stdenv.mkDerivation {
name = "pdcom";
inherit version;
src = fetchGit {
url = "https://gitlab.com/etherlab.org/pdcom.git";
ref = "${version}";
rev = "66bb0428137c0d795bddd0312875df9388c7e9b6"; #stable-3.0
#rev = "b9e4ca1d61d34474b7d50f7806f26aaf4cfe5100"; #5.1.0
#rev = "0e96e5d4bc2ad038ef6583d771f60fb0c2c563b1"; #stable-5.0
#rev = "89a79c902b536f9913ef4a4a9a868f5c42105368"; #master
#ref = "refs/tags/${version}";
#rev = "b9e4ca1d61d34474b7d50f7806f26aaf4cfe5100";
#ref = "refs/tags/1.9";
#sha256 = lib.fakeSha256;
};
enableParallelBuilding = true;
nativeBuildInputs = [ bash autoreconfHook pkg-config ];
#buildInputs = [ glibc glibc.static expat gnutls cyrus_sasl ];
buildInputs = [ libxcrypt expat gnutls cyrus_sasl ];
#configurePhase = ''
# ./configure
#'';
#patches = [ ];
#setSourceRoot = ''
# export sourceRoot=$(pwd)/source
#'';
#postUnpack = ''
# cd $sourceRoot
#'';
#preBuild = "set -x";
#preConfigure = ''
# mkdir build
# cd build
#'';
#cmakeFlags = [ "-DBUILD_TESTING=OFF" "-DCMAKE_BUILD_TYPE=Release" ];
#cmakeFlags = [ "-DCMAKE_POSITION_INDEPENDENT_CODE=ON" ];
#configurePhase = ''
# cmake -DBUILD_TESTING=OFF -DCMAKE_BUILD_TYPE=Release ..
#'';
#makeFlags = [ "-DCMAKE_INSTALL_PREFIX=${placeholder "out"}" ];
#installTargets = [ "install" ];
#postInstall = ''
# ln -s $out/include/pdcom5 $out/include/pdcom
# ln -s $out/include/pdcom5.h $out/include/pdcom.h
#'';
meta = with lib; {
description = "Flexible C++ library for platform- and protocol-independent process data exchange.";
platforms = platforms.linux;
};
}