Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Cabal hooks overlay
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Matthew Pickering
Cabal hooks overlay
Commits
6cca1642
Verified
Commit
6cca1642
authored
1 year ago
by
Rodrigo Mesquita
Browse files
Options
Downloads
Patches
Plain Diff
Location haskell-gi
parent
e8cc968f
No related branches found
No related tags found
1 merge request
!26
Location migration
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
patches/haskell-gi-0.26.7.patch
+5
-5
5 additions, 5 deletions
patches/haskell-gi-0.26.7.patch
with
5 additions
and
5 deletions
patches/haskell-gi-0.26.7.patch
+
5
−
5
View file @
6cca1642
...
...
@@ -43,7 +43,7 @@ index 7f863e8..8930a5a 100644
containers,
directory,
diff --git a/lib/Data/GI/CodeGen/CabalHooks.hs b/lib/Data/GI/CodeGen/CabalHooks.hs
index 23735c2..
5fec8a5
100644
index 23735c2..
d8672ff
100644
--- a/lib/Data/GI/CodeGen/CabalHooks.hs
+++ b/lib/Data/GI/CodeGen/CabalHooks.hs
@@ -1,17 +1,31 @@
...
...
@@ -103,7 +103,7 @@ index 23735c2..5fec8a5 100644
-
-type ConfHook = (GenericPackageDescription, HookedBuildInfo) -> ConfigFlags
- -> IO LocalBuildInfo
+import Distribution.Utils.Path
(getSymbolicPath)
+import Distribution.Utils.Path
+import qualified Data.List.NonEmpty as NE
-- | Included overrides file.
...
...
@@ -182,7 +182,7 @@ index 23735c2..5fec8a5 100644
+ noBuildHooks
+ { preBuildComponentRules = Just $ rules (static ()) $ \pbci -> do
+ let
+ sourcesDir =
getSymbolicPath $
autogenComponentModulesDir (pbci.localBuildInfo) (pbci.targetInfo.targetCLBI)
+ sourcesDir = autogenComponentModulesDir (pbci.localBuildInfo) (pbci.targetInfo.targetCLBI)
+ cmd = mkCommand (static Dict) (static \(sourcesDir,version,verbosity,pkgVersion,pkgName,overridesFile,outputDir,name,inheritedOverrides) -> do
+ -- We need to call generateModule every time we want to
+ -- regenerate the build tree, since we have just one rule for
...
...
@@ -200,7 +200,7 @@ index 23735c2..5fec8a5 100644
+ -- location, and to the module names of the declared `Results`.
+ _ <- writeModuleTree verbosity (Just sourcesDir) moduleInfo
+
+ genConfigModule sourcesDir outputDir name givenOvs) (sourcesDir,version,verbosity,pkgVersion,pkgName,overridesFile,outputDir,name,inheritedOverrides)
+ genConfigModule sourcesDir outputDir name givenOvs) (
getSymbolicPath
sourcesDir,version,verbosity,pkgVersion,pkgName,overridesFile,outputDir,name,inheritedOverrides)
+
+ -- We need to call generateModuleInfo a second time at build
+ -- time, even if we've already computed this at configure for
...
...
@@ -213,7 +213,7 @@ index 23735c2..5fec8a5 100644
+ let em' = genModulesFromInfo name moduleInfo
+
+ registerRule_ "rule1" $
+ staticRule cmd [] (NE.fromList $ map (\mn ->
(
sourcesDir
, MN.toFile
Path mn <> "
.
hs")) em')
+ staticRule cmd [] (NE.fromList $ map (\mn ->
Location
sourcesDir
(moduleNameSymbolic
Path mn <
.
> "hs")) em')
+ }
+ }
+
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment