mirror of
https://github.com/simplex-chat/haskell.nix.git
synced 2026-06-03 09:17:32 +00:00
f648a6585e
Project flags (from stack.yaml and plan.json) are exported in a modules attribute by stack-to-nix and plan-to-nix, but are not currently used. This change updates `mkStackPkgSet` and `mkCabalProjectPkgSet` so that the modules attribute is used (if present) and includes tests to check they are. This commit makes `stdenv.lib.mkOverride` necessary for setting flags in `mkCabalProjectPkgSet` modules, however it also means that you can set them in `cabal.project` instead (see #254).
10 lines
106 B
Haskell
10 lines
106 B
Haskell
{-# LANGUAGE CPP #-}
|
|
module Main where
|
|
|
|
import Lib
|
|
|
|
#ifdef TEST_FLAG
|
|
main :: IO ()
|
|
main = someFunc
|
|
#endif
|