termux-packages/packages/haskell-cabal/set-default-prefix.patch
Aditya Alok 7e97edb3ca feat: add cabal-install package
closes #8919

Signed-off-by: Aditya Alok <dev.aditya.alok@gmail.com>
2022-03-09 10:01:57 +09:00

12 lines
559 B
Diff

--- 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"