From 329c3edf615fafc6f2d868959dcec7c9dbbbb4ce Mon Sep 17 00:00:00 2001 From: Andrea Bedini Date: Wed, 26 Apr 2023 16:03:57 +0800 Subject: [PATCH] workbench: make shell pure --- Makefile | 2 +- nix/workbench/shell.nix | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index f41f3d522fa..497344c4764 100644 --- a/Makefile +++ b/Makefile @@ -54,7 +54,7 @@ workbench-internals-walkthrough: ## Base targets: ## shell: ## Nix shell, (workbench from /nix/store), vars: PROFILE, CMD, RUN - nix-shell -A 'workbench-shell' --max-jobs 8 --cores 0 --show-trace --argstr profileName ${PROFILE} --argstr backendName ${BACKEND} ${ARGS} ${if ${CMD},--command "${CMD}"} ${if ${RUN},--run "${RUN}"} + nix-shell -A 'workbench-shell' --max-jobs 8 --cores 0 --show-trace --pure --argstr profileName ${PROFILE} --argstr backendName ${BACKEND} ${ARGS} ${if ${CMD},--command "${CMD}"} ${if ${RUN},--run "${RUN}"} shell-dev shell-prof shell-nix: shell shell-nix: ARGS += --arg 'useCabalRun' false ## Nix shell, (workbench from Nix store), vars: PROFILE, CMD, RUN shell-prof: ARGS += --arg 'profiling' '"space"' ## Nix shell, everything Haskell built profiled diff --git a/nix/workbench/shell.nix b/nix/workbench/shell.nix index 4e64d268706..476e0c6e95c 100644 --- a/nix/workbench/shell.nix +++ b/nix/workbench/shell.nix @@ -116,6 +116,8 @@ in project.shellFor { ghc-prof-flamegraph sqlite-interactive tmux + pkgs.cacert + pkgs.curl pkgs.git pkgs.hlint pkgs.moreutils