13 pname = "session-desktop";
16 url = "https://github.com/oxen-io/session-desktop/releases/download/v${version}/session-desktop-linux-x86_64-${version}.AppImage";
17 hash = "sha256-71v6CvlKa4m1LPG07eGhPqkpK60X4VrafCQyfjQR3rs=";
19 appimage = appimageTools.wrapType2 { inherit version pname src; };
20 appimage-contents = appimageTools.extractType2 { inherit version pname src; };
22 stdenvNoCC.mkDerivation {
23 inherit version pname;
34 desktopName = "Session";
35 comment = "Onion routing based messenger";
36 exec = "session-desktop";
37 icon = "${appimage-contents}/session-desktop.png";
40 categories = [ "Network" ];
50 wrapProgram $out/bin/session-desktop \
51 --add-flags "\''${NIXOS_OZONE_WL:+\''${WAYLAND_DISPLAY:+--ozone-platform-hint=auto --enable-features=WaylandWindowDecorations --enable-wayland-ime=true}}"
57 description = "Onion routing based messenger";
58 mainProgram = "session-desktop";
59 homepage = "https://getsession.org/";
60 license = licenses.gpl3Only;
61 maintainers = with maintainers; [
65 platforms = [ "x86_64-linux" ];
66 sourceProvenance = with sourceTypes; [ binaryNativeCode ];