Skip to content

Commit ccf6e7d

Browse files
authored
Merge pull request #1972 from sgillespie/build/profiled-devshell
Nix: Add devShells with profiling
2 parents da76429 + ff15ca1 commit ccf6e7d

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
@@ -240,7 +240,6 @@
240240
[ "../config/pgpass-mainnet" ];
241241
packages.cardano-chain-gen.package.extraSrcFiles =
242242
[ "../schema/*.sql" ];
243-
244243
})
245244

246245
({ lib, config, ... }:
@@ -498,6 +497,17 @@
498497
in rec {
499498
checks = staticChecks;
500499

500+
devShells =
501+
let
502+
mkVariantShell = compiler: variant:
503+
lib.nameValuePair "profiled-${compiler}" v.shell;
504+
in
505+
# "Profiled" devshell variants for each extra compiler
506+
lib.mapAttrs' mkVariantShell project.profiled.projectVariants // {
507+
# A "profiled" variant shell for the default compiler
508+
profiled = project.profiled.shell;
509+
};
510+
501511
hydraJobs = callPackages inputs.iohkNix.utils.ciJobsAggregates {
502512
ciJobs = flake.hydraJobs;
503513
nonRequiredPaths = map lib.hasPrefix nonRequiredPaths;

0 commit comments

Comments
 (0)