From b3287733a2e5aacc5b6b9f716dcac623f2b52e52 Mon Sep 17 00:00:00 2001 From: jneira Date: Fri, 8 May 2020 22:26:38 +0200 Subject: Use forward compatible v1 prefix if available --- src/CabalHelper/Compiletime/Program/CabalInstall.hs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/CabalHelper/Compiletime/Program/CabalInstall.hs') 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 -> [] -- cgit v1.2.3