From 089750ab8eee7b1657a865b036e679ee626b8044 Mon Sep 17 00:00:00 2001
From: Jeremy Soller <jackpot51@gmail.com>
Date: Mon, 31 Oct 2016 13:13:12 -0600
Subject: [PATCH] Allow recipe to set cargo flags

---
 cook.sh                  | 3 ++-
 recipes/sodium/recipe.sh | 2 ++
 2 files changed, 4 insertions(+), 1 deletion(-)
 create mode 100644 recipes/sodium/recipe.sh

diff --git a/cook.sh b/cook.sh
index f82a619cf..a1c6ba801 100755
--- a/cook.sh
+++ b/cook.sh
@@ -2,6 +2,7 @@
 
 export RUST_TARGET_PATH=`realpath targets`
 export RUSTFLAGS="--cfg redox"
+export CARGOFLAGS=
 TARGET=x86_64-unknown-redox
 
 set -e
@@ -15,7 +16,7 @@ then
         case "$2" in
             build)
                 pushd build
-                xargo build --target "$TARGET"
+                xargo build --target "$TARGET" $CARGOFLAGS
                 popd
                 ;;
             clean)
diff --git a/recipes/sodium/recipe.sh b/recipes/sodium/recipe.sh
new file mode 100644
index 000000000..8839dd45c
--- /dev/null
+++ b/recipes/sodium/recipe.sh
@@ -0,0 +1,2 @@
+GIT=https://github.com/redox-os/sodium.git
+CARGOFLAGS="--features orbital"
-- 
GitLab