summaryrefslogtreecommitdiff
path: root/bild
diff options
context:
space:
mode:
Diffstat (limited to 'bild')
-rwxr-xr-xbild25
1 files changed, 0 insertions, 25 deletions
diff --git a/bild b/bild
deleted file mode 100755
index 7ef5009..0000000
--- a/bild
+++ /dev/null
@@ -1,25 +0,0 @@
-#!/usr/bin/env bash
-set -exo pipefail
-prefix=$(echo $PWD | sed -e "s|^$BIZ_ROOT/*||g" -e "s|/|.|g")
-if [[ "$prefix" == "" ]]
-then
- # TODO: make this accept any number of build targets
- target="$1"
-else
- target="$prefix.$1"
-fi
-log=$(mktemp)
-nix-build \
- -o "$BIZ_ROOT/_bild/$target" \
- $BIZ_ROOT/default.nix \
- --attr "$target" \
- --show-trace \
- 2>&1 \
- | tee $log
-if [[ ${PIPESTATUS[0]} != 0 ]]
-then
- o=$(gawk "match(\$0, /'(.*)'\sfailed/, a) {print a[1]}" $log \
- | head -n 1)
- nix log $o
-fi
-