--- Cabal-3.6.2.0/src/Distribution/Simple/InstallDirs.hs	2001-09-09 07:16:40.000000000 +0530
+++ Cabal-3.6.2.0-patch/src/Distribution/Simple/InstallDirs.hs	2022-02-17 23:25:55.447871965 +0530
@@ -193,7 +193,7 @@
       else case buildOS of
            Windows -> do windowsProgramFilesDir <- getWindowsProgramFilesDir
                          return (windowsProgramFilesDir </> "Haskell")
-           _       -> return "/usr/local"
+           _       -> return "@TERMUX_PREFIX@"
   installLibDir <-
       case buildOS of
       Windows -> return "$prefix"
