mirror of
https://github.com/snowfallorg/nix-software-center.git
synced 2024-08-16 16:40:25 +03:00
10 lines
247 B
Bash
10 lines
247 B
Bash
#!/usr/bin/env bash
|
|
export SOURCE_ROOT="$1"
|
|
export DIST="$2"
|
|
|
|
cd "$SOURCE_ROOT"
|
|
mkdir "$DIST"/.cargo
|
|
cargo vendor | sed 's/^directory = ".*"/directory = "vendor"/g' > $DIST/.cargo/config
|
|
# Move vendor into dist tarball directory
|
|
mv vendor "$DIST"
|