Update the carnix updater to do a cargo build prior to the carnix update

This commit is contained in:
Graham Christensen 2018-08-07 17:05:42 -04:00
parent 8df71dffdc
commit 9ccce84eb9
No known key found for this signature in database
GPG key ID: ACA1C1D120C83D5C

View file

@ -1,11 +1,18 @@
#!/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
}