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