1 { appimageTools, symlinkJoin, lib, fetchurl, makeDesktopItem }:
4 pname = "ssb-patchwork";
6 name = "Patchwork-${version}";
9 url = "https://github.com/ssbc/patchwork/releases/download/v${version}/${name}.AppImage";
10 sha256 = "F8n6LLbgkg3z55lSY60T+pn2lra8aPt6Ztepw1gf2rI=";
13 binary = appimageTools.wrapType2 {
17 # we only use this to extract the icon
18 appimage-contents = appimageTools.extractType2 {
22 desktopItem = makeDesktopItem {
23 name = "ssb-patchwork";
24 exec = "${binary}/bin/ssb-patchwork";
25 icon = "ssb-patchwork";
26 comment = "Client for the decentralized social network Secure Scuttlebutt";
27 desktopName = "Patchwork";
28 genericName = "Patchwork";
29 categories = [ "Network" ];
38 mkdir -p $out/share/pixmaps/ $out/share/applications
39 cp ${appimage-contents}/ssb-patchwork.png $out/share/pixmaps
40 cp ${desktopItem}/share/applications/* $out/share/applications/
44 description = "A decentralized messaging and sharing app built on top of Secure Scuttlebutt (SSB)";
46 sea-slang for gossip - a scuttlebutt is basically a watercooler on a ship.
48 homepage = "https://www.scuttlebutt.nz/";
49 license = licenses.agpl3Only;
50 maintainers = with maintainers; [ asymmetric picnoir cyplo ];
51 mainProgram = "ssb-patchwork";
52 platforms = [ "x86_64-linux" ];