forked from the-distro/ofborg
21 lines
275 B
Bash
Executable file
21 lines
275 B
Bash
Executable file
#!/bin/sh
|
|
|
|
set -eu
|
|
|
|
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
|