Merge pull request #145754 from eduarrrd/marktext

authored by

Sandro and committed by
GitHub
788fceee 29b7d4ad

+19 -6
+19 -6
pkgs/applications/misc/marktext/default.nix
··· 2 2 3 3 let 4 4 pname = "marktext"; 5 - version = "v0.16.2"; 6 - in 7 - appimageTools.wrapType2 rec { 5 + version = "v0.16.3"; 8 6 name = "${pname}-${version}-binary"; 9 7 10 8 src = fetchurl { 11 9 url = "https://github.com/marktext/marktext/releases/download/${version}/marktext-x86_64.AppImage"; 12 - sha256 = "0ivf9lvv2jk7dvxmqprzcsxgya3617xmx5bppjvik44z14b5x8r7"; 10 + sha256 = "0s93c79vy2vsi7b6xq4hvsvjjad8bdkhl1q135vp98zmbf7bvm9b"; 11 + }; 12 + 13 + appimageContents = appimageTools.extractType2 { 14 + inherit name src; 13 15 }; 16 + in 17 + appimageTools.wrapType2 rec { 18 + inherit name src; 14 19 15 20 profile = '' 16 21 export LC_ALL=C.UTF-8 ··· 28 33 p.xorg.libxkbfile 29 34 ]; 30 35 31 - # Strip version from binary name. 32 - extraInstallCommands = "mv $out/bin/${name} $out/bin/${pname}"; 36 + extraInstallCommands = '' 37 + # Strip version from binary name. 38 + mv $out/bin/${name} $out/bin/${pname} 39 + 40 + install -m 444 -D ${appimageContents}/marktext.desktop $out/share/applications/marktext.desktop 41 + substituteInPlace $out/share/applications/marktext.desktop \ 42 + --replace "Exec=AppRun" "Exec=${pname} --" 43 + 44 + cp -r ${appimageContents}/usr/share/icons $out/share 45 + ''; 33 46 34 47 meta = with lib; { 35 48 description = "A simple and elegant markdown editor, available for Linux, macOS and Windows";