From 8d416209b6d27511989c0a3ab03dcc8d157b25dc Mon Sep 17 00:00:00 2001 From: Kosyrev Serge Date: Tue, 18 Jun 2019 16:53:13 +0300 Subject: [PATCH] shell.nix: review suggestions --- shell.nix | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/shell.nix b/shell.nix index c5438e4a661..972449647b9 100644 --- a/shell.nix +++ b/shell.nix @@ -4,14 +4,14 @@ let default = import ./default.nix {}; in default.nix-tools._raw.shellFor { - packages = p: map (x: p."${x}") [ - "io-sim" - "io-sim-classes" - "ouroboros-consensus" - "ouroboros-network" - "typed-transitions" + packages = ps: with ps; [ + io-sim + io-sim-classes + ouroboros-consensus + ouroboros-network + typed-transitions ]; - withHoogle = withHoogle; + inherit withHoogle; buildInputs = with default.nix-tools._raw; [ cabal-install.components.exes.cabal ];