+ progs = withPrograms lbi
+ prog = ConfiguredProgram {
+ programId = programName ghcPkgProgram,
+ programVersion = Nothing,
+ programArgs = ["--force", "--global-conf", ghcpkgconf],
+ programLocation = UserSpecified ghcpkg
+ }
+ progs' = updateProgram prog progs
+ i_reg = i { prefix = toPathTemplate iprefix,
+ bindir = toPathTemplate ibindir,
+ libdir = toPathTemplate ilibdir,
+ dynlibdir = toPathTemplate idynlibdir,
+ libexecdir = toPathTemplate ilibexecdir,
+ datadir = toPathTemplate idatadir,
+ docdir = toPathTemplate idocdir,
+ htmldir = toPathTemplate ihtmldir,
+ haddockdir = toPathTemplate ihaddockdir
+ }
+ lbi_reg = lbi { installDirTemplates = i_reg,
+ withPrograms = progs' }
+ (copyHook simpleUserHooks) pd lbi_copy userHooks copyFlags
+ (regHook simpleUserHooks) pd_reg lbi_reg userHooks registerFlags