ofborg/nix/update-carnix.sh

21 lines
275 B
Bash
Raw Normal View History

2017-11-30 03:32:33 +00:00
#!/bin/sh
set -eu
2017-11-30 03:32:33 +00:00
cd nix
patched_carnix() {
src=$1
result=$2
(
cd "$(dirname "$src")"
cargo build
)
carnix "$src" --output "$result"
patch -p1 "$result" ./carnix.patch
}
patched_carnix ./../ofborg/Cargo.lock ./ofborg-carnix.nix