From 3ea12132db5be16dfaf5334d8ed289632e7ff7d8 Mon Sep 17 00:00:00 2001
From: Jeremy Soller <jackpot51@gmail.com>
Date: Mon, 8 May 2023 08:13:35 -0600
Subject: [PATCH] nushell: fix openssl linking issue

---
 recipes/nushell/recipe.toml | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/recipes/nushell/recipe.toml b/recipes/nushell/recipe.toml
index 95e59a5f7..27c9c8d61 100644
--- a/recipes/nushell/recipe.toml
+++ b/recipes/nushell/recipe.toml
@@ -1,5 +1,4 @@
 #TODO: build fails to link, we need the following in relibc
-# - cfmakeraw
 # - getgrgid_r
 # - getgrouplist
 # Additionally, openssl fails to link fprintf and sscanf
@@ -12,5 +11,10 @@ branch = "redox"
 dependencies = [
   "openssl"
 ]
-template = "cargo"
+template = "custom"
+script = """
+export OPENSSL_DIR="${COOKBOOK_SYSROOT}"
+export OPENSSL_STATIC="true"
+cookbook_cargo
+"""
 
-- 
GitLab