summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2024-06-05 14:09:37 +0200
committertv <tv@krebsco.de>2024-06-05 14:09:37 +0200
commitae0418299ec94648520da96c59ea7d85cfb8016d (patch)
treef20439b38bf1878bd50402e24e83ea1cc7277283
parent2ab1cf2c1941442418454ec57629a28e0c70b172 (diff)
cabal-read: admit Cabal>=3.8.0
-rw-r--r--pkgs/simple/cabal-read.nix4
1 files changed, 4 insertions, 0 deletions
diff --git a/pkgs/simple/cabal-read.nix b/pkgs/simple/cabal-read.nix
index 03b42ef..524a970 100644
--- a/pkgs/simple/cabal-read.nix
+++ b/pkgs/simple/cabal-read.nix
@@ -10,7 +10,11 @@ writeHaskellPackage "cabal-read" {
import Data.List
import Data.Maybe
import Distribution.Compiler
+ #if MIN_VERSION_Cabal(3,8,0)
+ import Distribution.Simple.PackageDescription
+ #else
import Distribution.PackageDescription.Parsec
+ #endif
import Distribution.Types.BuildInfo
import Distribution.Types.CondTree
import Distribution.Types.Executable