Skip to content

Commit 7c0a91e

Browse files
authored
devshell: provide stdenv native deps (#1560)
should fix devshell for darwin, which should depends on clang and not gcc.
1 parent 98b1edc commit 7c0a91e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/project-overlays.nix

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,9 @@
1010
packages = final.shell.nativeBuildInputs
1111
# devshell does not use pkgs.mkShell / pkgs.stdenv.mkDerivation,
1212
# so we need to explicit required dependencies which
13-
# are provided implicitely when using the normal shell:
14-
++ (with final.pkgs; [ binutils git gcc glibc gawk gnugrep bash coreutils pkg-config ]);
13+
# are provided implicitely by stdenv when using the normal shell:
14+
++ final.shell.stdenv.defaultNativeBuildInputs
15+
++ final.shell.stdenv.extraNativeBuildInputs;
1516
env = lib.mapAttrsToList lib.nameValuePair {
1617
inherit (final.shell) CABAL_CONFIG NIX_GHC_LIBDIR;
1718
};

0 commit comments

Comments
 (0)