summary refs log tree commit diff
path: root/pkgs/tools/typesetting/tectonic
diff options
context:
space:
mode:
authorMaximilian Bode <maximilian.bode@tngtech.com>2018-04-03 14:33:19 +0200
committerMaximilian Bode <maximilian.bode@tngtech.com>2018-04-03 14:33:19 +0200
commit8f2102def60ef91462d79e257fc4b120c76d6f5c (patch)
tree0a3afc4f4663ee6c7f95209c5ee6074ad077cf66 /pkgs/tools/typesetting/tectonic
parent57ce94c97121647ceab995cd18bb993751d86f32 (diff)
downloadnixpkgs-8f2102def60ef91462d79e257fc4b120c76d6f5c.tar
nixpkgs-8f2102def60ef91462d79e257fc4b120c76d6f5c.tar.gz
nixpkgs-8f2102def60ef91462d79e257fc4b120c76d6f5c.tar.bz2
nixpkgs-8f2102def60ef91462d79e257fc4b120c76d6f5c.tar.lz
nixpkgs-8f2102def60ef91462d79e257fc4b120c76d6f5c.tar.xz
nixpkgs-8f2102def60ef91462d79e257fc4b120c76d6f5c.tar.zst
nixpkgs-8f2102def60ef91462d79e257fc4b120c76d6f5c.zip
tectonic: fix darwin build
Diffstat (limited to 'pkgs/tools/typesetting/tectonic')
-rw-r--r--pkgs/tools/typesetting/tectonic/default.nix5
1 files changed, 3 insertions, 2 deletions
diff --git a/pkgs/tools/typesetting/tectonic/default.nix b/pkgs/tools/typesetting/tectonic/default.nix
index ad612fa18af..f3f0a60b480 100644
--- a/pkgs/tools/typesetting/tectonic/default.nix
+++ b/pkgs/tools/typesetting/tectonic/default.nix
@@ -1,5 +1,5 @@
 { stdenv, fetchFromGitHub, rustPlatform, makeWrapper
-, fontconfig, harfbuzz-icu, openssl, pkgconfig }:
+, darwin, fontconfig, harfbuzz-icu, openssl, pkgconfig }:
 
 rustPlatform.buildRustPackage rec {
   name = "tectonic-${version}";
@@ -16,7 +16,8 @@ rustPlatform.buildRustPackage rec {
 
   nativeBuildInputs = [ pkgconfig ];
 
-  buildInputs = [ fontconfig harfbuzz-icu openssl ];
+  buildInputs = [ fontconfig harfbuzz-icu openssl ]
+    ++ stdenv.lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [ ApplicationServices Cocoa Foundation ]);
 
   # tests fail due to read-only nix store
   doCheck = false;