Skip to content

Commit

Permalink
Add support for ghc910 to hydraJobs (#6293)
Browse files Browse the repository at this point in the history
  • Loading branch information
zeme-wana authored Jul 9, 2024
1 parent db5cabb commit 55861af
Show file tree
Hide file tree
Showing 4 changed files with 63 additions and 71 deletions.
117 changes: 48 additions & 69 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 7 additions & 1 deletion nix/outputs.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ let
ghc96-profiled = project.variants.ghc96-profiled;
ghc98 = project.variants.ghc98;
ghc810 = project.variants.ghc810;

ghc910 = project.variants.ghc910;
in

[
Expand All @@ -21,6 +21,7 @@ in
devShells.ghc96 = ghc96.devShell;
devShells.ghc810 = ghc810.devShell;
devShells.ghc98 = ghc98.devShell;
devShells.ghc910 = ghc910.devShell;

packages = ghc96.packages;
apps = ghc96.apps;
Expand All @@ -43,6 +44,7 @@ in
hydraJobs.ghc96 = ghc96.hydraJobs;
hydraJobs.ghc810 = ghc810.hydraJobs;
hydraJobs.ghc98 = ghc98.hydraJobs;
hydraJobs.ghc910 = ghc910.hydraJobs;
})

(lib.optionalAttrs (system == "x86_64-linux")
Expand All @@ -67,6 +69,7 @@ in
hydraJobs.ghc810.devShell = ghc810.devShell;
hydraJobs.ghc96.devShell = ghc96.devShell;
hydraJobs.ghc98.devShell = ghc98.devShell;
hydraJobs.ghc910.devShell = ghc910.devShell;

hydraJobs.ghc810.roots = ghc810.hydraJobs.roots;
hydraJobs.ghc810.plan-nix = ghc810.hydraJobs.plan-nix;
Expand All @@ -76,5 +79,8 @@ in

hydraJobs.ghc98.roots = ghc98.hydraJobs.roots;
hydraJobs.ghc98.plan-nix = ghc98.hydraJobs.plan-nix;

hydraJobs.ghc910.roots = ghc910.hydraJobs.roots;
hydraJobs.ghc910.plan-nix = ghc910.hydraJobs.plan-nix;
})
]
1 change: 1 addition & 0 deletions nix/project.nix
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ let
}];
ghc810.compiler-nix-name = "ghc810";
ghc98.compiler-nix-name = "ghc98";
ghc910.compiler-nix-name = "ghc910";
};

inputMap = { "https://chap.intersectmbo.org/" = inputs.iogx.inputs.CHaP; };
Expand Down
8 changes: 7 additions & 1 deletion plutus-metatheory/Setup.hs
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,17 @@ main = D.defaultMainWithHooks userHooks
where
userHooks :: D.UserHooks
userHooks = D.simpleUserHooks { D.hookedPreProcessors = preProcessors }

#if MIN_VERSION_Cabal(3,12,0)
preProcessors :: [D.PPSuffixHandler]
preProcessors = [(D.Suffix "md", agdaPreProcessor),
(D.Suffix "lagda",agdaPreProcessor),
(D.Suffix "lagda.md",agdaPreProcessor)]
#else
preProcessors :: [D.PPSuffixHandler]
preProcessors = [("md", agdaPreProcessor),
("lagda",agdaPreProcessor),
("lagda.md",agdaPreProcessor)]
#endif

agdaPreProcessor :: D.BuildInfo -> D.LocalBuildInfo -> D.ComponentLocalBuildInfo -> D.PreProcessor
agdaPreProcessor _ lbi _ = D.PreProcessor
Expand Down

0 comments on commit 55861af

Please sign in to comment.