lol
1{
2 stdenv,
3 lib,
4 fetchFromGitHub,
5 cmake,
6 open62541,
7}:
8
9stdenv.mkDerivation (finalAttrs: {
10 pname = "open62541pp";
11 version = "0.19.0";
12
13 src = fetchFromGitHub {
14 owner = "open62541pp";
15 repo = "open62541pp";
16 rev = "v${finalAttrs.version}";
17 hash = "sha256-aXEYGSwVYr9+mTE7ZF9xFA990k1qrKlV+1KvHz/fB6U=";
18 };
19
20 cmakeFlags = [
21 (lib.cmakeBool "UAPP_INTERNAL_OPEN62541" false)
22 ];
23
24 nativeBuildInputs = [
25 cmake
26 ];
27
28 buildInputs = [
29 open62541
30 ];
31
32 meta = {
33 description = "C++ wrapper of the open62541 OPC UA library";
34 homepage = "https://open62541pp.github.io/open62541pp";
35 changelog = "https://github.com/open62541pp/open62541pp/releases/tag/${finalAttrs.src.rev}";
36 license = lib.licenses.mpl20;
37 maintainers = with lib.maintainers; [ sikmir ];
38 platforms = lib.platforms.unix;
39 };
40})