1 { appimageTools, fetchurl, lib }:
8 url = "https://github.com/marktext/marktext/releases/download/v${version}/marktext-x86_64.AppImage";
9 sha256 = "2e2555113e37df830ba3958efcccce7020907b12fd4162368cfd906aeda630b7";
12 appimageContents = appimageTools.extractType2 {
13 inherit pname version src;
16 appimageTools.wrapType2 rec {
17 inherit pname version src;
23 extraPkgs = pkgs: [ pkgs.libsecret pkgs.xorg.libxkbfile ];
25 extraInstallCommands = ''
26 install -m 444 -D ${appimageContents}/marktext.desktop $out/share/applications/marktext.desktop
27 substituteInPlace $out/share/applications/marktext.desktop \
28 --replace "Exec=AppRun" "Exec=${pname} --"
30 cp -r ${appimageContents}/usr/share/icons $out/share
34 description = "Simple and elegant markdown editor, available for Linux, macOS and Windows";
35 homepage = "https://www.marktext.cc";
36 license = licenses.mit;
37 maintainers = with maintainers; [ nh2 eduarrrd ];
38 platforms = [ "x86_64-linux" ];
39 mainProgram = "marktext";