12 stdenvNoCC.mkDerivation (finalAttrs: let
14 url = "https://raw.githubusercontent.com/toeverything/AFFiNE/v${finalAttrs.version}/packages/frontend/core/public/favicon-192.png";
15 hash = "sha256-smZ5W7fy3TK3bvjwV4i71j2lVmKSZcyhMhcWfPxNnN4=";
21 url = "https://github.com/toeverything/AFFiNE/releases/download/v${finalAttrs.version}/affine-${finalAttrs.version}-stable-linux-x64.zip";
22 hash = "sha256-CbbCYcZ6z5Prj9GwIoneHU3LUsae0S4o40LgunLmQ8s=";
31 cp -r ./resources/* -t $out/lib/
33 install -Dm644 ${icon} $out/share/pixmaps/affine.png
34 makeWrapper "${electron}/bin/electron" $out/bin/affine \
36 --add-flags $out/lib/app.asar \
37 --add-flags "\''${NIXOS_OZONE_WL:+\''${WAYLAND_DISPLAY:+--ozone-platform-hint=auto --enable-features=WaylandWindowDecorations}}" \
38 --add-flags ${lib.escapeShellArg commandLineArgs}
43 desktopName = "AFFiNE";
47 startupWMClass = "affine";
48 categories = ["Utility"];
52 description = "Workspace with fully merged docs, whiteboards and databases";
54 AFFiNE is an open-source, all-in-one workspace and an operating
55 system for all the building blocks that assemble your knowledge
56 base and much more -- wiki, knowledge management, presentation
59 homepage = "https://affine.pro/";
60 downloadPage = "https://affine.pro/download";
61 license = licenses.mit;
62 maintainers = with maintainers; [richar redyf];
63 mainProgram = "affine";
64 platforms = ["x86_64-linux"];