devshell: provide stdenv native deps (#1560)

should fix devshell for darwin, which should depends on
 clang and not gcc.
This commit is contained in:
Jean-Baptiste G 2022-07-29 01:26:25 +02:00 committed by GitHub
parent 98b1edc73b
commit 7c0a91eab2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -10,8 +10,9 @@
packages = final.shell.nativeBuildInputs
# devshell does not use pkgs.mkShell / pkgs.stdenv.mkDerivation,
# so we need to explicit required dependencies which
# are provided implicitely when using the normal shell:
++ (with final.pkgs; [ binutils git gcc glibc gawk gnugrep bash coreutils pkg-config ]);
# are provided implicitely by stdenv when using the normal shell:
++ final.shell.stdenv.defaultNativeBuildInputs
++ final.shell.stdenv.extraNativeBuildInputs;
env = lib.mapAttrsToList lib.nameValuePair {
inherit (final.shell) CABAL_CONFIG NIX_GHC_LIBDIR;
};