devshell: remove non-derivation from packages list add missing binutils. (#1571)

This commit is contained in:
Jean-Baptiste G 2022-08-01 13:59:11 +02:00 committed by GitHub
parent ce047883ac
commit df62d93a7b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -11,8 +11,8 @@
# devshell does not use pkgs.mkShell / pkgs.stdenv.mkDerivation,
# so we need to explicit required dependencies which
# are provided implicitely by stdenv when using the normal shell:
++ final.shell.stdenv.defaultNativeBuildInputs
++ final.shell.stdenv.extraNativeBuildInputs;
++ (lib.filter lib.isDerivation final.shell.stdenv.defaultNativeBuildInputs)
++ [ final.pkgs.buildPackages.binutils ];
env = lib.mapAttrsToList lib.nameValuePair {
inherit (final.shell) CABAL_CONFIG NIX_GHC_LIBDIR;
};