- lbi_register = lbi { libsubdir = "$pkgid" }
- (copyHook simpleUserHooks) pd' lbi_copy userHooks copyFlags
- (regHook simpleUserHooks) pd' lbi_register userHooks registerFlags
+ progs = withPrograms lbi
+ prog = ConfiguredProgram {
+ programId = programName ghcPkgProgram,
+ programVersion = Nothing,
+ programArgs = ["--global-conf", ghcpkgconf],
+ programLocation = UserSpecified ghcpkg
+ }
+ progs' = updateProgram prog progs
+ i_reg = i { libSubdirTemplate = toPathTemplate "$pkgid" }
+ lbi_reg = lbi { installDirTemplates = i_reg,
+ withPrograms = progs' }
+ (copyHook simpleUserHooks) pd_copy lbi_copy userHooks copyFlags
+ (regHook simpleUserHooks) pd_reg lbi_reg userHooks registerFlags