Skip to content

Commit

Permalink
Revert "Refactoring: Inline mapAttrs"
Browse files Browse the repository at this point in the history
This reverts commit c3c5bc8.
  • Loading branch information
fmaste committed Jun 24, 2022
1 parent 623f6aa commit 5426d7b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion nix/workbench/default.nix
Expand Up @@ -7,6 +7,10 @@

let

# Being super verbose about everything needed from the `lib` parameter.
# Instead of doing `with lib;`
inherit (lib) mapAttrs;

workbench' = tools:

/* The function `mkDerivation` in the Nixpkgs standard environment is a
Expand Down Expand Up @@ -136,7 +140,7 @@ let

value = lib.genAttrs profile-names mkProfile;

JSON = pkgs.writeText "all-profiles.json" (__toJSON (lib.mapAttrs (_: x: x.value) value));
JSON = pkgs.writeText "all-profiles.json" (__toJSON (mapAttrs (_: x: x.value) value));
};

## materialise-profile :: ProfileNix -> BackendProfile -> Profile
Expand Down

0 comments on commit 5426d7b

Please sign in to comment.