8 # Based on https://gist.github.com/msteen/96cb7df66a359b827497c5269ccbbf94 and joplin-desktop nixpkgs.
12 name = "${pname}-${version}";
14 url = "https://github.com/Zettlr/Zettlr/releases/download/v${version}/Zettlr-${version}-x86_64.appimage";
15 sha256 = "sha256-3p9RO6hpioYF6kdGV+/9guoqxaPCJG73OsrN69SHQHk=";
17 appimageContents = appimageTools.extractType2 {
21 appimageTools.wrapType2 rec {
24 multiPkgs = null; # no 32bit needed
25 extraPkgs = pkgs: (appimageTools.defaultFhsEnvArgs.multiPkgs pkgs) ++ [ texlive pandoc ];
26 extraInstallCommands = ''
27 mv $out/bin/{${name},${pname}}
28 install -m 444 -D ${appimageContents}/Zettlr.desktop $out/share/applications/Zettlr.desktop
29 install -m 444 -D ${appimageContents}/Zettlr.png $out/share/icons/hicolor/512x512/apps/Zettlr.png
30 substituteInPlace $out/share/applications/Zettlr.desktop \
31 --replace 'Exec=AppRun' 'Exec=${pname}'
35 description = "A markdown editor for writing academic texts and taking notes";
36 homepage = "https://www.zettlr.com";
37 platforms = [ "x86_64-linux" ];
38 license = licenses.gpl3;
39 maintainers = with maintainers; [ tfmoraes ];