1
0
Fork 0
piped-flake/build.sh

18 lines
399 B
Bash
Executable file

#!/usr/bin/env bash
set -euo pipefail
BASE_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
cd "${BASE_DIR}"
rm -rf result
mkdir result
echo "Building Frontend"
nix build .#piped-frontend -o result/piped-frontend "$@"
echo "Building Backend"
nix build .#piped-backend -o result/piped-backend "$@"
echo "Building Proxy"
nix build .#piped-proxy -o result/piped-proxy "$@"