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 3 let 4 pname = "marktext"; 5 - version = "v0.16.2"; 6 - in 7 - appimageTools.wrapType2 rec { 8 name = "${pname}-${version}-binary"; 9 10 src = fetchurl { 11 url = "https://github.com/marktext/marktext/releases/download/${version}/marktext-x86_64.AppImage"; 12 - sha256 = "0ivf9lvv2jk7dvxmqprzcsxgya3617xmx5bppjvik44z14b5x8r7"; 13 }; 14 15 profile = '' 16 export LC_ALL=C.UTF-8 ··· 28 p.xorg.libxkbfile 29 ]; 30 31 - # Strip version from binary name. 32 - extraInstallCommands = "mv $out/bin/${name} $out/bin/${pname}"; 33 34 meta = with lib; { 35 description = "A simple and elegant markdown editor, available for Linux, macOS and Windows";
··· 2 3 let 4 pname = "marktext"; 5 + version = "v0.16.3"; 6 name = "${pname}-${version}-binary"; 7 8 src = fetchurl { 9 url = "https://github.com/marktext/marktext/releases/download/${version}/marktext-x86_64.AppImage"; 10 + sha256 = "0s93c79vy2vsi7b6xq4hvsvjjad8bdkhl1q135vp98zmbf7bvm9b"; 11 + }; 12 + 13 + appimageContents = appimageTools.extractType2 { 14 + inherit name src; 15 }; 16 + in 17 + appimageTools.wrapType2 rec { 18 + inherit name src; 19 20 profile = '' 21 export LC_ALL=C.UTF-8 ··· 33 p.xorg.libxkbfile 34 ]; 35 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 + ''; 46 47 meta = with lib; { 48 description = "A simple and elegant markdown editor, available for Linux, macOS and Windows";