From 6922a48fe13e7a79ff684cc89d5e0766062100de Mon Sep 17 00:00:00 2001 From: Lukas Werling Date: Mon, 21 Aug 2017 22:49:10 +0200 Subject: [PATCH] tectonic: init at 0.1.6 --- pkgs/tools/typesetting/tectonic/default.nix | 33 +++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 35 insertions(+) create mode 100644 pkgs/tools/typesetting/tectonic/default.nix diff --git a/pkgs/tools/typesetting/tectonic/default.nix b/pkgs/tools/typesetting/tectonic/default.nix new file mode 100644 index 00000000000..f6c3be63e03 --- /dev/null +++ b/pkgs/tools/typesetting/tectonic/default.nix @@ -0,0 +1,33 @@ +{ stdenv, fetchFromGitHub, rustPlatform, makeWrapper +, fontconfig, harfbuzz-icu, openssl, pkgconfig }: + +with rustPlatform; + +buildRustPackage rec { + name = "tectonic-${version}"; + version = "0.1.6"; + + src = fetchFromGitHub { + owner = "tectonic-typesetting"; + repo = "tectonic"; + rev = "v${version}"; + sha256 = "0k5vkn112bjwh4wnxryzqz79dlja64k7s105mf3yaik136hqnmqv"; + }; + + depsSha256 = "1vxvkh1v9x6j4ggbh6sysi5i3089hrs0mjbp910a1jljiav7l8nj"; + + nativeBuildInputs = [ pkgconfig ]; + + buildInputs = [ fontconfig harfbuzz-icu openssl ]; + + # tests fail due to read-only nix store + doCheck = false; + + meta = with stdenv.lib; { + description = "Modernized, complete, self-contained TeX/LaTeX engine, powered by XeTeX and TeXLive"; + homepage = https://tectonic-typesetting.github.io/; + license = with licenses; [ mit ]; + maintainers = [ maintainers.lluchs ]; + platforms = platforms.all; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 11dabac2ea7..8c4b5f472ce 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -10393,6 +10393,8 @@ with pkgs; tecla = callPackage ../development/libraries/tecla { }; + tectonic = callPackage ../tools/typesetting/tectonic { }; + telepathy_glib = callPackage ../development/libraries/telepathy/glib { }; telepathy_farstream = callPackage ../development/libraries/telepathy/farstream {};