10 url = "https://github.com/janhq/jan/releases/download/v${version}/jan-linux-x86_64-${version}.AppImage";
11 hash = "sha256-PkRizjF4RVhCH7YOPABb+SpZlO3aKT5W6b0YBuKTNWk=";
14 appimageContents = appimageTools.extractType2 { inherit pname version src; };
16 appimageTools.wrapType2 {
17 inherit pname version src;
19 extraInstallCommands = ''
20 install -Dm444 ${appimageContents}/jan.desktop -t $out/share/applications
21 substituteInPlace $out/share/applications/jan.desktop \
22 --replace-fail 'Exec=AppRun --no-sandbox %U' 'Exec=jan'
23 cp -r ${appimageContents}/usr/share/icons $out/share
27 changelog = "https://github.com/janhq/jan/releases/tag/v${version}";
28 description = "Jan is an open source alternative to ChatGPT that runs 100% offline on your computer";
29 homepage = "https://github.com/janhq/jan";
30 license = lib.licenses.agpl3Plus;
33 platforms = lib.platforms.linux;