From 6a6aa57afe94f8ffee3a648ca66aa16099714b94 Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Sat, 25 Jul 2020 14:49:11 -0700 Subject: bild: port to haskell --- bild | 25 ------------------------- 1 file changed, 25 deletions(-) delete mode 100755 bild (limited to 'bild') 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 - -- cgit v1.2.3