chatbox: init at 1.11.3 (#360718)
This commit is contained in:
commit
6c3eb3bc7b
@ -3736,6 +3736,12 @@
|
||||
githubId = 510553;
|
||||
name = "Jos van Bakel";
|
||||
};
|
||||
c31io = {
|
||||
email = "celiogrand@outlook.com";
|
||||
github = "c31io";
|
||||
githubId = 83821760;
|
||||
name = "Celio Grand";
|
||||
};
|
||||
c4605 = {
|
||||
email = "bolasblack@gmail.com";
|
||||
github = "bolasblack";
|
||||
|
48
pkgs/by-name/ch/chatbox/package.nix
Normal file
48
pkgs/by-name/ch/chatbox/package.nix
Normal file
@ -0,0 +1,48 @@
|
||||
{
|
||||
lib,
|
||||
appimageTools,
|
||||
fetchurl,
|
||||
}:
|
||||
let
|
||||
pname = "chatbox";
|
||||
version = "1.11.3";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://download.chatboxai.app/releases/Chatbox-${version}-x86_64.AppImage";
|
||||
hash = "sha256-YMZsgbCkG/cZd77DOVZj6jVJDzWMcrt92soxyLNr2QI=";
|
||||
};
|
||||
|
||||
appimageContents = appimageTools.extract { inherit pname version src; };
|
||||
in
|
||||
appimageTools.wrapType2 {
|
||||
inherit pname version src;
|
||||
|
||||
extraInstallCommands = ''
|
||||
install -m 444 -D ${appimageContents}/xyz.chatboxapp.app.desktop $out/share/applications/chatbox.desktop
|
||||
install -m 444 -D ${appimageContents}/usr/share/icons/hicolor/512x512/apps/xyz.chatboxapp.app.png $out/share/icons/hicolor/512x512/apps/chatbox.png
|
||||
substituteInPlace $out/share/applications/chatbox.desktop \
|
||||
--replace-fail 'Exec=AppRun' 'Exec=chatbox' \
|
||||
--replace-fail 'Icon=xyz.chatboxapp.app' 'Icon=chatbox'
|
||||
'';
|
||||
|
||||
passthru.updateScript = ''
|
||||
#!/usr/bin/env nix-shell
|
||||
#!nix-shell -i bash -p curl grep common-updater-scripts
|
||||
version=$(curl -I -X GET https://chatboxai.app/install_chatbox/linux | grep -oP 'Chatbox-\K[0-9]+\.[0-9]+\.[0-9]+')
|
||||
update-source-version chatbox $version
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "AI client application and smart assistant";
|
||||
homepage = "https://chatboxai.app";
|
||||
downloadPage = "https://chatboxai.app/en#download";
|
||||
changelog = "https://chatboxai.app/en/help-center/changelog";
|
||||
license = lib.licenses.unfree;
|
||||
sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];
|
||||
maintainers = with lib.maintainers; [ c31io ];
|
||||
mainProgram = "chatbox";
|
||||
|
||||
# Help porting to other platforms :)
|
||||
platforms = [ "x86_64-linux" ];
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user