@@ -1,4 +1,4 @@
1−{-# LANGUAGE PatternGuards #-}
1+{-# LANGUAGE PatternGuards, CPP #-}
22
33module Main ( main ) where
44
@@ -232,7 +232,11 @@ cabal2nix resolver cabal = (missingDeps, flags, drv)
232232 (configureCabalFlags (package (packageDescription cabal)))
233233 resolver'
234234 (Platform X86_64 Linux) -- shouldn't be hardcoded
235− (CompilerId GHC (Version [7,8,4] [])) -- ditto
235+#if MIN_VERSION_Cabal(1,22,0)
236+ (unknownCompilerInfo (CompilerId GHC (Version [7,8,4] [])) NoAbiTag)
237+#else
238+ (CompilerId GHC (Version [7,8,4] []))
239+#endif
236240 [] -- no additional constraints
237241
238242 -- A variant of the cabal file that has all test suites enabled to ensure