From 7bcf9383c2d394a52ef448d599dadfbc3d6aad1e Mon Sep 17 00:00:00 2001 From: Federico Mastellone Date: Sat, 6 Aug 2022 04:53:42 +0000 Subject: [PATCH] Inline --- nix/workbench/default.nix | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/nix/workbench/default.nix b/nix/workbench/default.nix index b4c9da803a5..7d0d1f05aa7 100644 --- a/nix/workbench/default.nix +++ b/nix/workbench/default.nix @@ -89,8 +89,6 @@ let JSON = pkgs.writeText "all-profiles.json" (__toJSON (mapAttrs (_: x: x.value) value)); }; - ## materialise-profile :: ProfileNix -> BackendProfile -> Profile - materialise-profile = import ./profile.nix { inherit pkgs lib; }; ## profile-topology :: ProfileNix -> Topology profile-topology = import ./topology.nix { inherit pkgs; }; ## profile-topology :: ProfileNix -> Topology -> Genesis @@ -104,7 +102,8 @@ let profileNix = ps.value."${profileName}" or (throw "No such profile: ${profileName}; Known profiles: ${toString (__attrNames ps.value)}"); - profile = materialise-profile { inherit profileNix backend; }; + profile = (import ./profile.nix { inherit pkgs lib; }) + { inherit profileNix backend; }; topology = profile-topology { inherit profileNix profile; };