summaryrefslogtreecommitdiff
blob: a5d056e71c94c4bd188d9bbc956ad2c6a2ef7160 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
diff -ru cipher-aes128-0.7.0.3.orig/Setup.hs cipher-aes128-0.7.0.3/Setup.hs
--- cipher-aes128-0.7.0.3.orig/Setup.hs	2016-08-31 01:58:48.000000000 -0400
+++ cipher-aes128-0.7.0.3/Setup.hs	2018-07-04 22:06:10.880373751 -0400
@@ -13,10 +13,8 @@
 main = defaultMainWithHooks hk
  where
  hk = simpleUserHooks { buildHook = \pd lbi uh bf -> do
-                                        let ccProg = Program "gcc" undefined undefined undefined
-                                            hcProg = Program "ghc" undefined undefined undefined
-                                            mConf  = lookupProgram ccProg (withPrograms lbi)
-                                            hcConf = lookupProgram hcProg (withPrograms lbi)
+                                        let mConf  = lookupProgram gccProgram (withPrograms lbi)
+                                            hcConf = lookupProgram ghcProgram (withPrograms lbi)
                                             err = error "Could not determine C compiler"
                                             _cc  = locationPath . programLocation  . maybe err id $ mConf
                                             hc  = locationPath . programLocation  . maybe err id $ hcConf