repo for my hex addons :3
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

at main 21 lines 993 B view raw
1#!/usr/bin/env bash 2set -euo pipefail 3root="$(dirname "$0")" 4cache="$root/.cb_cache" 5mkdir -p "$cache" 6if [ ! -f "$cache/nix" ]; then 7 wget --continue https://maven.pool.net.eu.org/nix.txz -O "$cache/nix.txz" 8 sha256sum -c <<<"08390181744713b84bf2d92662cd78b2407de38908da26854eb3a2d06335d961 $cache/nix.txz" 9 tar CxJvf "$cache" "$cache/nix.txz" 10 rm "$cache/nix.txz" 11fi 12shell="$cache/shell_$(sha256sum shell.nix)" 13nix_args=(--extra-experimental-features 'flakes' --keep-going --extra-substituters https://poollovernathan.cachix.org'?'trusted=1) 14if [ -n "${NO_CRASH:-}" ]; then 15 "$cache/nix-shell" "${nix_args[@]}" --command "$(printf '%q ' gradle "$@")" 16else 17 #[ -d "$cache/_nix" ] || "$cache/nix" --extra-experimental-features 'nix-command flakes' build github:nixos/nixpkgs/fe51d34885f7b5e3e7b59572796e1bcb427eccb1#nix -o "$cache/_nix" 18 [ -f "$shell" ] || "$cache/nix-build" "${nix_args[@]}" shell.nix -o "$shell" --log-format bar 19 . <(tail +5 "$shell") 20 exec gradle "$@" 21fi