Skip to content

Commit ff15ca1

Browse files
committed
build(nix): Add devShells with profiling
1 parent b953db2 commit ff15ca1

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

flake.nix

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,6 @@
231231
[ "../config/pgpass-mainnet" ];
232232
packages.cardano-chain-gen.package.extraSrcFiles =
233233
[ "../schema/*.sql" ];
234-
235234
})
236235

237236
({ lib, config, ... }:
@@ -489,6 +488,17 @@
489488
in rec {
490489
checks = staticChecks;
491490

491+
devShells =
492+
let
493+
mkVariantShell = compiler: variant:
494+
lib.nameValuePair "profiled-${compiler}" v.shell;
495+
in
496+
# "Profiled" devshell variants for each extra compiler
497+
lib.mapAttrs' mkVariantShell project.profiled.projectVariants // {
498+
# A "profiled" variant shell for the default compiler
499+
profiled = project.profiled.shell;
500+
};
501+
492502
hydraJobs = callPackages inputs.iohkNix.utils.ciJobsAggregates {
493503
ciJobs = flake.hydraJobs;
494504
nonRequiredPaths = map lib.hasPrefix nonRequiredPaths;

0 commit comments

Comments
 (0)