diff options
author | lassulus <lassulus@lassul.us> | 2020-12-30 13:00:28 +0100 |
---|---|---|
committer | lassulus <lassulus@lassul.us> | 2020-12-30 13:00:28 +0100 |
commit | 50a3903825c8932b87b3fb6be77245688be76534 (patch) | |
tree | 7cafca39fc1d805259afc5f52dbad51f21e81932 /krebs/5pkgs/simple/cabal-read.nix | |
parent | 053044834c1af30a90ced1338ae4342a445a2946 (diff) | |
parent | 9c2529b2910bdb3b73bcd69ed958d82e01bf7943 (diff) |
Merge remote-tracking branch 'ni/master'
Diffstat (limited to 'krebs/5pkgs/simple/cabal-read.nix')
-rw-r--r-- | krebs/5pkgs/simple/cabal-read.nix | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/krebs/5pkgs/simple/cabal-read.nix b/krebs/5pkgs/simple/cabal-read.nix index f8fc71e05..03b42ef2c 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 -> |