From 980a66fb2c37028de08c63ac348f50c931b4af2d Mon Sep 17 00:00:00 2001 From: Rodney Lorrimar Date: Fri, 12 Mar 2021 21:05:55 +1000 Subject: [PATCH] fixup! Update nix-shell for Haskell.nix changes --- nix/build-tools-overlay.nix | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/nix/build-tools-overlay.nix b/nix/build-tools-overlay.nix index 88d1b2cf979..95e289b284b 100644 --- a/nix/build-tools-overlay.nix +++ b/nix/build-tools-overlay.nix @@ -56,14 +56,11 @@ pkgs: super: let # A script for updating materialized files regenerateMaterialized = pkgs.writeShellScriptBin "regenerate-materialized-nix" (pkgs.lib.optionalString enableMaterialization - (pkgs.lib.concatStringsSep "\n" (pkgs.lib.mapAttrsToList (name: tool: '' - printf '\n\n\n*** Updating materialized nix for ${name} ***\n\n' - ${mkMaterialize name tool} - '') tools))); - mkMaterialize = name: args: let - plan = (mkTool name (args // { checkMaterialization = true; })).project.plan-nix; - in - plan.generateMaterialized or "echo fixme"; + (pkgs.lib.concatStringsSep "\n" (pkgs.lib.mapAttrsToList (name: hsPkg: '' + echo 'Updating materialized nix for ${name}' + ${mkMaterialize hsPkg} + '') hsPkgs))); + mkMaterialize = hsPkg: hsPkg.project.plan-nix.passthru.updateMaterialized; # https://github.com/input-output-hk/nix-tools/issues/97 enableMaterialization = pkgs.stdenv.isLinux;