From 856043318585211319cc8deb4d42cca5582e111b Mon Sep 17 00:00:00 2001
From: Varun Rajput <varun@digitallyinduced.com>
Date: Wed, 3 Jan 2024 12:42:15 -0500
Subject: [PATCH] Remove cachix install step

---
 ProjectGenerator/bin/ihp-new | 34 ----------------------------------
 1 file changed, 34 deletions(-)

diff --git a/ProjectGenerator/bin/ihp-new b/ProjectGenerator/bin/ihp-new
index f36068ffa..f29555e2d 100755
--- a/ProjectGenerator/bin/ihp-new
+++ b/ProjectGenerator/bin/ihp-new
@@ -218,40 +218,6 @@ if ! [ -x "$(command -v make)" ]; then
 	esac
 fi
 
-if ! [ -x "$(command -v cachix)" ]; then
-	echo -e "\e[1m\e[35mCACHIX MISSING\e[0m"
-	echo -e "IHP uses cachix as a binary cache."
-	echo -e "Learn more about cachix here: \e[4mhttps://cachix.org/\e[0m"
-	echo ""
-	echo ""
-	echo -e "\e[1mWe will install cachix for you now. Continue? (Type y to proceed) \e[0m"
-	read -r -n1 choice
-	echo ""
-	case "$choice" in
-	y | Y) nix-env -iA ${NIXPKGS_ATTR}.cachix ;;
-	*)
-		echo -e "\e[31mPlease install cachix manually and then re-run this program.\e[0m"
-		exit 1
-		;;
-	esac
-fi
-
-if ! grep -s -q "digitallyinduced.cachix.org-1:y+wQvrnxQ+PdEsCt91rmvv39qRCYzEgGQaldK26hCKE=" ~/.config/nix/nix.conf; then
-	echo -e "\e[1mCachix doesn't seem to be configured\e[0m"
-	echo -e "IHP provides a cachix cache with binaries for all IHP packages and commonly used dependencies."
-	echo -e "While not required, this greatly speeds up the installation & build process."
-	echo -e "This could be a false negative if you use a more complex nix configuration."
-	echo ""
-	echo ""
-	echo -e "\e[1mWe will configure the cache for you now using 'cachix use digitallyinduced'. Continue? (Type y to proceed) \e[0m"
-	read -r -n1 choice
-	echo ""
-	case "$choice" in
-	y | Y) cachix use digitallyinduced ;;
-	*) echo -e "Skipping cachix configuration" ;;
-	esac
-fi
-
 BOILERPLATE_GIT_BRANCH="master"
 
 if [[ "$1" == "--elm" ]]; then