Skip to content

Commit

Permalink
Fix ci.benchmarks attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
HeinrichApfelmus committed Dec 16, 2024
1 parent 7ebb18a commit ec60560
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 10 deletions.
21 changes: 12 additions & 9 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -435,15 +435,18 @@
};

ci.benchmarks =
packages.benchmarks.cardano-wallet-benchmarks //
packages.benchmarks.cardano-wallet-blackbox-benchmarks // {
all = pkgs.releaseTools.aggregate {
name = "cardano-wallet-benchmarks";
meta.description = "Build all benchmarks";
constituents =
lib.collect lib.isDerivation packages.benchmarks;
};
};
let
collectedBenchmarks =
lib.concatMapAttrs (_n: v: v) packages.benchmarks;
in
collectedBenchmarks // {
all = pkgs.releaseTools.aggregate {
name = "cardano-wallet-benchmarks";
meta.description = "Build all benchmarks";
constituents =
lib.collect lib.isDerivation collectedBenchmarks;
};
};
ci.artifacts = mkReleaseArtifacts walletProject // {
dockerImage = packages.dockerImage;
};
Expand Down
3 changes: 2 additions & 1 deletion nix/lib.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ lib
rec {
# Imports from nixpkgs.lib
inherit (lib) filterAttrsRecursive recursiveUpdate collect
optionalAttrs mapAttrs isDerivation fileset;
optionalAttrs mapAttrs isDerivation fileset
concatMapAttrs;

/* Convert versions string from Cabal (YYYY.M.D)
to git tag format (vYYYY-MM-DD).
Expand Down

0 comments on commit ec60560

Please sign in to comment.