Fix GHC location before Stack install
[hadrian.git] / hadrian.cabal
1 name:                hadrian
2 version:             0.1.0.0
3 synopsis:            GHC build system
4 license:             BSD3
5 license-file:        LICENSE
6 author:              Andrey Mokhov <andrey.mokhov@gmail.com>, github: @snowleopard
7 maintainer:          Andrey Mokhov <andrey.mokhov@gmail.com>, github: @snowleopard
8 copyright:           Andrey Mokhov 2014-2016
9 category:            Development
10 build-type:          Simple
11 cabal-version:       >=1.10
12
13 source-repository head
14     type:     git
15     location: https://github.com/snowleopard/hadrian
16
17 executable hadrian
18     main-is:             Main.hs
19     hs-source-dirs:      .
20                        , src
21     other-modules:       Base
22                        , Builder
23                        , CmdLineFlag
24                        , Context
25                        , Environment
26                        , Expression
27                        , Flavour
28                        , GHC
29                        , Oracles.ArgsHash
30                        , Oracles.Config
31                        , Oracles.Config.Flag
32                        , Oracles.Config.Setting
33                        , Oracles.Dependencies
34                        , Oracles.DirectoryContent
35                        , Oracles.LookupInPath
36                        , Oracles.ModuleFiles
37                        , Oracles.PackageData
38                        , Oracles.PackageDatabase
39                        , Oracles.WindowsPath
40                        , Package
41                        , Predicate
42                        , Rules
43                        , Rules.Actions
44                        , Rules.Cabal
45                        , Rules.Clean
46                        , Rules.Compile
47                        , Rules.Configure
48                        , Rules.Data
49                        , Rules.Dependencies
50                        , Rules.Documentation
51                        , Rules.Generate
52                        , Rules.Generators.Common
53                        , Rules.Generators.ConfigHs
54                        , Rules.Generators.GhcAutoconfH
55                        , Rules.Generators.GhcBootPlatformH
56                        , Rules.Generators.GhcPlatformH
57                        , Rules.Generators.GhcSplit
58                        , Rules.Generators.GhcVersionH
59                        , Rules.Generators.VersionHs
60                        , Rules.Gmp
61                        , Rules.Libffi
62                        , Rules.Library
63                        , Rules.Oracles
64                        , Rules.Perl
65                        , Rules.Program
66                        , Rules.Register
67                        , Rules.Selftest
68                        , Rules.Test
69                        , Rules.Wrappers.Ghc
70                        , Rules.Wrappers.GhcPkg
71                        , Settings
72                        , Settings.Builders.Alex
73                        , Settings.Builders.Ar
74                        , Settings.Builders.Common
75                        , Settings.Builders.Cc
76                        , Settings.Builders.Configure
77                        , Settings.Builders.DeriveConstants
78                        , Settings.Builders.GenApply
79                        , Settings.Builders.GenPrimopCode
80                        , Settings.Builders.Ghc
81                        , Settings.Builders.GhcCabal
82                        , Settings.Builders.GhcPkg
83                        , Settings.Builders.Haddock
84                        , Settings.Builders.Happy
85                        , Settings.Builders.Hsc2Hs
86                        , Settings.Builders.HsCpp
87                        , Settings.Builders.Ld
88                        , Settings.Builders.Make
89                        , Settings.Builders.Tar
90                        , Settings.Default
91                        , Settings.Flavours.Quick
92                        , Settings.Flavours.Quickest
93                        , Settings.Packages.Base
94                        , Settings.Packages.Compiler
95                        , Settings.Packages.Directory
96                        , Settings.Packages.Ghc
97                        , Settings.Packages.GhcCabal
98                        , Settings.Packages.GhcPrim
99                        , Settings.Packages.Haddock
100                        , Settings.Packages.Hp2ps
101                        , Settings.Packages.IntegerGmp
102                        , Settings.Packages.IservBin
103                        , Settings.Packages.Rts
104                        , Settings.Packages.RunGhc
105                        , Settings.Packages.Touchy
106                        , Settings.Packages.Unlit
107                        , Settings.Paths
108                        , Stage
109                        , Target
110                        , UserSettings
111                        , Way
112
113     default-language:    Haskell2010
114     default-extensions:  RecordWildCards
115     other-extensions:    DeriveGeneric
116                        , FlexibleInstances
117                        , GeneralizedNewtypeDeriving
118                        , LambdaCase
119                        , OverloadedStrings
120                        , ScopedTypeVariables
121     build-depends:       base >= 4.8 && < 5
122                        , ansi-terminal        == 0.6.*
123                        , Cabal                == 1.22.* || == 1.24.* || == 1.25.*
124                        , containers           == 0.5.*
125                        , directory            == 1.2.*
126                        , extra                >= 1.4.7
127                        , mtl                  == 2.2.*
128                        , QuickCheck           >= 2.6 && < 2.9
129                        , shake                >= 0.15.6
130                        , transformers         >= 0.4 && < 0.6
131                        , unordered-containers == 0.2.*
132     ghc-options:         -Wall
133                          -fno-warn-name-shadowing
134                          -rtsopts -with-rtsopts=-I0
135                          -threaded