2024-09-16 16:47:22 -04:00
|
|
|
#echo "Running CMake!"
|
2024-09-13 01:17:18 -04:00
|
|
|
args="$@"
|
|
|
|
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
|
2024-09-16 16:47:22 -04:00
|
|
|
CLION=$(which clion)
|
|
|
|
CLION_DIR=$(nix-store -r $CLION 2>/dev/null)
|
|
|
|
CMAKE_DIR="$CLION_DIR/clion/bin/cmake/linux/x64/bin/cmake"
|
|
|
|
export NIXPKGS_ALLOW_UNFREE=1
|
|
|
|
nix-shell --pure --run "$CMAKE_DIR $args" $SCRIPT_DIR/default.nix
|
|
|
|
exit
|