default.nix (813B)
1 { lib, stdenv, fetchFromGitHub, cmake, boost, openssl }: 2 3 stdenv.mkDerivation rec { 4 pname = "opcua-stack"; 5 version = "3.8.1"; 6 7 src = fetchFromGitHub { 8 owner = "ASNeG"; 9 repo = "OpcUaStack"; 10 rev = version; 11 hash = "sha256-czpuuT9DeZaYo2Q8Y/vW1kAsIiFhRDSKwVBUcFgb9iQ="; 12 }; 13 14 sourceRoot = "${src.name}/src"; 15 16 postPatch = '' 17 substituteInPlace CMakeLists.txt --replace-fail "/usr" "$out" 18 ''; 19 20 nativeBuildInputs = [ cmake ]; 21 22 buildInputs = [ boost openssl ]; 23 24 meta = with lib; { 25 description = "Open Source OPC UA Application Server and OPC UA Client/Server C++ Libraries"; 26 homepage = "https://asneg.github.io/projects/opcuastack"; 27 license = licenses.asl20; 28 maintainers = [ maintainers.sikmir ]; 29 platforms = platforms.linux; 30 skip.ci = stdenv.isDarwin; 31 }; 32 }