From 488251496048a0a70beb046f70dafc728aeffba3 Mon Sep 17 00:00:00 2001 From: Doron Behar Date: Sun, 1 Nov 2020 22:30:44 +0200 Subject: [PATCH] tectonic: Install desktop file. --- pkgs/tools/typesetting/tectonic/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/tools/typesetting/tectonic/default.nix b/pkgs/tools/typesetting/tectonic/default.nix index e1af4ba81d77..965624a50987 100644 --- a/pkgs/tools/typesetting/tectonic/default.nix +++ b/pkgs/tools/typesetting/tectonic/default.nix @@ -19,6 +19,11 @@ rustPlatform.buildRustPackage rec { buildInputs = [ fontconfig harfbuzz openssl ] ++ stdenv.lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [ ApplicationServices Cocoa Foundation ]); + postInstall = stdenv.lib.optionalString stdenv.isLinux '' + install -D dist/appimage/tectonic.desktop -t $out/share/applications/ + install -D dist/appimage/tectonic.svg -t $out/share/icons/hicolor/scalable/apps/ + ''; + doCheck = true; meta = with stdenv.lib; {