on iko/ghcjs-patch-master help sign in
devshell: provide stdenv native deps (#1560)
7c0a91eJean-Baptiste G
lib/project-overlays.nix+3−2
@@ -10,8 +10,9 @@
10 packages = final.shell.nativeBuildInputs
10 packages = final.shell.nativeBuildInputs
11 # devshell does not use pkgs.mkShell / pkgs.stdenv.mkDerivation,
11 # devshell does not use pkgs.mkShell / pkgs.stdenv.mkDerivation,
12 # so we need to explicit required dependencies which
12 # so we need to explicit required dependencies which
13− # are provided implicitely when using the normal shell:
13+ # are provided implicitely by stdenv when using the normal shell:
14− ++ (with final.pkgs; [ binutils git gcc glibc gawk gnugrep bash coreutils pkg-config ]);
14+ ++ final.shell.stdenv.defaultNativeBuildInputs
15+ ++ final.shell.stdenv.extraNativeBuildInputs;
15 env = lib.mapAttrsToList lib.nameValuePair {
16 env = lib.mapAttrsToList lib.nameValuePair {
16 inherit (final.shell) CABAL_CONFIG NIX_GHC_LIBDIR;
17 inherit (final.shell) CABAL_CONFIG NIX_GHC_LIBDIR;
17 };
18 };