aboutsummaryrefslogtreecommitdiff
path: root/nix-rust/local.mk
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2019-07-05 01:01:18 +0200
committerEelco Dolstra <edolstra@gmail.com>2019-11-26 22:07:28 +0100
commitd722e2175ef826cd60f05608fb7d58aa82261549 (patch)
tree13eb9f32a6ee30e1222cbd77177a904978f4ef2c /nix-rust/local.mk
parent0dbb249b36f1d058e63982d26746fde48911cce4 (diff)
Include cargo dependencies in the Nix tarball
Diffstat (limited to 'nix-rust/local.mk')
-rw-r--r--nix-rust/local.mk4
1 files changed, 3 insertions, 1 deletions
diff --git a/nix-rust/local.mk b/nix-rust/local.mk
index c69e3b9ea..ce88fa51b 100644
--- a/nix-rust/local.mk
+++ b/nix-rust/local.mk
@@ -4,4 +4,6 @@ libnixrust_LDFLAGS_USE := -L$(d)/target/release -lnixrust -ldl
libnixrust_LDFLAGS_USE_INSTALLED := $(libnixrust_LDFLAGS_USE)
$(d)/target/release/libnixrust.a: $(wildcard $(d)/src/*.rs) $(d)/Cargo.toml
- $(trace-gen) cd nix-rust && RUSTC_BOOTSTRAP=1 cargo build --release && touch target/release/libnixrust.a
+ $(trace-gen) cd nix-rust && CARGO_HOME=$$(if [[ -d vendor ]]; then echo vendor; fi) cargo build --release -Z offline && touch target/release/libnixrust.a
+
+dist-files += $(d)/vendor