commit 259019bba7f35dc23735238e05288bbcd96568a2 parent d7d0c9d17de3fab0db49329e5ce8b52a9c46b532 Author: Vincent Demeester <vincent@sbr.pm> Date: Thu, 22 Nov 2018 18:22:15 +0100 Add small script to upload to cachix Signed-off-by: Vincent Demeester <vincent@sbr.pm> Diffstat:
A | hack/pkgs-build-cachix.sh | | | 16 | ++++++++++++++++ |
1 file changed, 16 insertions(+), 0 deletions(-)
diff --git a/hack/pkgs-build-cachix.sh b/hack/pkgs-build-cachix.sh @@ -0,0 +1,16 @@ +#!/usr/bin/env bash +set -e +DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )" + +pushd $DIR/../pkgs +set +e +for p in *; do + nix-build . -A $p | cachix push shortbrain +done +set -e + +# cleanup +for r in result*; do + unlink $r +done +popd