diff options
-rw-r--r-- | src/CabalHelper/Compiletime/Program/CabalInstall.hs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/CabalHelper/Compiletime/Program/CabalInstall.hs b/src/CabalHelper/Compiletime/Program/CabalInstall.hs index 71866ae..9c8b48d 100644 --- a/src/CabalHelper/Compiletime/Program/CabalInstall.hs +++ b/src/CabalHelper/Compiletime/Program/CabalInstall.hs @@ -129,7 +129,9 @@ callCabalInstall , if cabalInstallVer >= Version [1,20,0,0] [] then ["--no-require-sandbox"] else [] - , [ "install", srcdir ] + , if cabalInstallVer >= Version [2,4,0,0] [] + then [ "v1-install", srcdir ] + else [ "install", srcdir] , if | ?verbose 3 -> ["-v2"] | ?verbose 4 -> ["-v3"] | otherwise -> [] |