Merge pull request #69129 from eadwu/typora/include-pandoc

typora: allow pandoc to be in PATH

authored by worldofpeace and committed by GitHub 19b4d188 9a9760d8

+16 -3
+16 -3
pkgs/applications/editors/typora/default.nix
··· 1 - { stdenv, fetchurl, makeWrapper, electron_5, dpkg, gtk3, glib, gsettings-desktop-schemas, wrapGAppsHook }: 1 + { stdenv 2 + , lib 3 + , fetchurl 4 + , makeWrapper 5 + , electron_5 6 + , dpkg 7 + , gtk3 8 + , glib 9 + , gsettings-desktop-schemas 10 + , wrapGAppsHook 11 + , withPandoc ? false 12 + , pandoc 13 + }: 2 14 3 15 stdenv.mkDerivation rec { 4 16 pname = "typora"; ··· 42 54 makeWrapper ${electron_5}/bin/electron $out/bin/typora \ 43 55 --add-flags $out/share/typora \ 44 56 "''${gappsWrapperArgs[@]}" \ 45 - --prefix LD_LIBRARY_PATH : "${stdenv.lib.makeLibraryPath [ stdenv.cc.cc ]}" 57 + ${lib.optionalString withPandoc ''--prefix PATH : "${lib.makeBinPath [ pandoc ]}"''} \ 58 + --prefix LD_LIBRARY_PATH : "${lib.makeLibraryPath [ stdenv.cc.cc ]}" 46 59 ''; 47 60 48 - meta = with stdenv.lib; { 61 + meta = with lib; { 49 62 description = "A minimal Markdown reading & writing app"; 50 63 homepage = https://typora.io; 51 64 license = licenses.unfree;