From 29827720520b6a4885dbdcb3237070e6e45dd910 Mon Sep 17 00:00:00 2001 From: tv Date: Tue, 1 Dec 2020 23:11:59 +0100 Subject: cabal-read: make compatible with Cabal >=3.0.0 --- krebs/5pkgs/simple/cabal-read.nix | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'krebs/5pkgs') diff --git a/krebs/5pkgs/simple/cabal-read.nix b/krebs/5pkgs/simple/cabal-read.nix index f8fc71e0..03b42ef2 100644 --- a/krebs/5pkgs/simple/cabal-read.nix +++ b/krebs/5pkgs/simple/cabal-read.nix @@ -5,6 +5,7 @@ writeHaskellPackage "cabal-read" { executables.ghc-options = { extra-depends = ["Cabal"]; text = /* haskell */ '' + {-# LANGUAGE CPP #-} module Main (main) where import Data.List import Data.Maybe @@ -26,6 +27,9 @@ writeHaskellPackage "cabal-read" { case lookup (mkUnqualComponentName name) (condExecutables desc) of Just exe -> putStrLn . intercalate " " . fromMaybe [] . lookup GHC + #if MIN_VERSION_Cabal(3,0,0) + . perCompilerFlavorToList + #endif . options . buildInfo . condTreeData $ exe Nothing -> -- cgit v1.2.3