10 pname = "opcua-commander";
13 src = fetchFromGitHub {
15 repo = "opcua-commander";
17 hash = "sha256-wQXSSNinY85Ti+D/zklYP2N8IP3OsN9xQNJuuQr4kVU=";
20 npmDepsHash = "sha256-Ux1X/3sam9WHrTfqoWv1r9p3pJOs6BaeFsxHizAvjXA=";
21 nativeBuildInputs = [ esbuild typescript makeWrapper ];
24 substituteInPlace package.json \
25 --replace-warn "npx -y esbuild" "esbuild"
28 # We need to add `nodejs` to PATH for `opcua-commander` to properly work
29 # when connected to an OPC-UA server.
31 # ./opcua-commander -e opc.tcp://opcuademo.sterfive.com:26543
33 wrapProgram $out/bin/opcua-commander \
34 --prefix PATH : "${lib.makeBinPath [nodejs]}"
38 description = "Opcua client with blessed (ncurses)";
39 homepage = "https://github.com/node-opcua/opcua-commander";
40 license = licenses.mit;
41 maintainers = with maintainers; [ jonboh ];
42 mainProgram = "opcua-commander";