Trying to create custom package from this microsoft bot emulator framework appImage
but after running bot-framework-emulator
in emulator the app launches and after first mouse move it becomes blank.
{
appimageTools,
fetchurl,
}:
let
pname = "bot-framework-emulator";
version = "4.15.1";
src = fetchurl {
url = "https://github.com/microsoft/BotFramework-Emulator/releases/download/v${version}/BotFramework-Emulator-${version}-linux-x86_64.AppImage";
sha512 = "ckICVe0KVvn15UdFIUm9BTFosTfIIS8sy2ct4DCUylV8JDLlkQa6pLLQofyPH/wIBzmmuUDMSvxafm8I8rb1Bw==";
};
in
appimageTools.wrapType2 {
inherit pname version src;
}
this are the logs:
❯ bot-framework-emulator
(node:99818) [DEP0111] DeprecationWarning: Access to process.binding('http_parser') is deprecated.
(Use `@bfemulatormain --trace-deprecation ...` to show where the warning was created)
Error reading file /home/ali/.config/@bfemulator/main/botframework-emulator/bots.json: Error: Encoding not recognized: 'null' (searched as: 'null')
Removing extension JSON
Adding extension JSON
Removing extension LUIS
Adding extension LUIS
Removing extension QNAMaker
Adding extension QNAMaker
Server listens on port 40605
Web Socket host server listening on 44481...
what am I doing wrong?
Is there a reason you’re basing this on the AppImage?
No actually.
I just thought if it is based on node packages, then installing it from source could take significantly more time.
Not exactly relevant to the question here, but if you can build it from source that would be preferred (if you plan to submit it to nixpkgs).
Here’s a starting point. This fails to build with ENOTCACHED
.
Searching for that gives some results, but I’m not sure what’s causing it in this case.
{
buildNpmPackage,
fetchFromGitHub,
nix-update-script,
lib,
#versionCheckHook,
}:
buildNpmPackage rec {
pname = "bot-framework-emulator";
version = "4.15.1";
src = fetchFromGitHub {
owner = "microsoft";
repo = "BotFramework-Emulator";
tag = "v${version}";
hash = "sha256-tLD6Hz8+kt72A5c+lz0/XBt8kIE0rcKi1t3KJyTWEjY=";
};
npmDepsHash = "sha256-5uVEDE8W312OJD2Vi1h5CXlguZlV/YRiFu5LrsPBz/8=";
passthru = {
updateScript = nix-update-script { };
};
#nativeInstallCheckInputs = [ versionCheckHook ];
#versionCheckProgramArg = [ "--version" ];
meta = {
description = "Desktop application to locally test and debug chat bots built with the Bot Framework SDK";
longDescription = ''
The Bot Framework Emulator is a desktop application that allows bot
developers totest and debug bots built using the Bot Framework SDK. You can use
the Bot Framework Emulator to test bots running either locally on your machine
or connect to bots running remotely through a tunnel.
This is part the Microsoft Bot Framework - a comprehensive framework for
building enterprise-grade conversational AI experiences.
'';
homepage = "https://github.com/microsoft/BotFramework-Emulator";
changelog = "https://github.com/microsoft/BotFramework-Emulator/blob/${src.tag}/CHANGELOG.md";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [
];
mainProgram = "bot-framework-emulator";
};
}