12 lines
265 B
Bash
Executable File

#!/usr/bin/env bash
SRC_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
output_file=$1; shift
cd "$SRC_DIR"
exe_location="$SRC_DIR/result/bin/imalison-xmonad"
nix-build
echo "$exe_location" "$output_file" > did_build
cp -f "$exe_location" "$output_file"