From e4da4aef697d75795e2794105bd884c66e1a8a8a Mon Sep 17 00:00:00 2001 From: Sridhar Ratnakumar Date: Tue, 17 May 2022 14:50:18 -0400 Subject: [PATCH] nix: Restore optionals behaviour for shellTools --- flake.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index 23fb83e..551f4bc 100644 --- a/flake.nix +++ b/flake.nix @@ -19,6 +19,7 @@ let # Because: https://zimbatm.com/notes/1000-instances-of-nixpkgs pkgs = inputs.nixpkgs.legacyPackages.${system}; + inherit (pkgs.lib.lists) optionals; # Specify GHC version here. To get the appropriate value, run: # nix-env -f "" -qaP -A haskell.compiler @@ -54,7 +55,7 @@ # All the Cabal-specific overrides go here. # For examples on what is possible, see: # https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/haskell-modules/lib/compose.nix - buildTools = (oa.buildTools or [ ]) ++ shellDeps; + buildTools = (oa.buildTools or [ ]) ++ optionals returnShellEnv shellDeps; }); }; in