1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-18 19:51:17 +00:00
nixpkgs/pkgs/test
Jacquin Mininger 7d67db3919 shellFor: Refactor for consistency and cross
This makes it work like work-on-multi from Reflex Platform. In
particular, rather than making `.env` from `shellFor`, we make `.env`
the primitive, and `shellFor` works by combining together the arguments
of all the packages to `generic-builder` and taking the `.env` of the
resulting mashup-package.

There are 2 benefits of this:

1. The dependency logic is deduplicated. generic builder just concatted
   lists, whereas all the envs until now would sieve apart haskell and
   system build inputs. Now, they both decide haskell vs system the same
   way: according to the argument list and without reflection.
   Consistency is good, especially because it mean that if the build
   works, the shell is more likely to work.

2. Cross is handled better. For native builds, because the
   `ghcWithPackages` calls would shadow, we through both the regular
   component (lib, exe, test, bench) haskell deps and Setup.hs haskell
   deps in the same `ghcWithPackages` call. But for cross builds we use
   `buildPackages.ghcWithPackages` to get the setup deps. This ensures
   everything works correctly.
2020-01-17 10:46:29 -05:00
..
cc-wrapper
cross
haskell-shellFor shellFor: Refactor for consistency and cross 2020-01-17 10:46:29 -05:00
ld-library-path
macos-sierra-shared treewide: remove redundant rec 2019-08-28 11:07:32 +00:00
mkOption
nixos-functions
patch-shebangs treewide: use dontUnpack 2019-07-01 04:23:51 -04:00
simple
stdenv-inputs treewide: use dontUnpack 2019-07-01 04:23:51 -04:00
default.nix shellFor: Refactor for consistency and cross 2020-01-17 10:46:29 -05:00
kernel.nix treewide: remove unused variables (#63177) 2019-06-16 19:59:05 +00:00