nix: Restore optionals behaviour for shellTools

This commit is contained in:
Sridhar Ratnakumar 2022-05-17 14:50:18 -04:00
parent 4a93410b77
commit e4da4aef69

View file

@ -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 "<nixpkgs>" -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