nixpkgs/pkgs
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
..
applications treewide: Get rid of most `parseDrvName` without breaking compat 2019-11-24 17:22:28 +00:00
build-support stdenv: Introduce hasCC attribute 2019-11-25 00:12:38 +00:00
common-updater treewide: Get rid of most `parseDrvName` without breaking compat 2019-11-24 17:22:28 +00:00
data Merge pull request #68339 from NixOS/staging-next 2019-09-09 10:02:20 +02:00
desktops treewide: Get rid of most `parseDrvName` without breaking compat 2019-11-24 17:22:28 +00:00
development shellFor: Refactor for consistency and cross 2020-01-17 10:46:29 -05:00
games gnome-hexgl: unstable-2019-08-21 → 0.2.0 2019-09-09 14:02:09 +02:00
misc treewide: Get rid of most `parseDrvName` without breaking compat 2019-11-24 17:22:28 +00:00
os-specific xcode: don’t use libstdc++ on iOS 2020-01-03 15:19:34 -05:00
servers treewide: Get rid of most `parseDrvName` without breaking compat 2019-11-24 17:22:28 +00:00
shells treewide: Get rid of most `parseDrvName` without breaking compat 2019-11-24 17:22:28 +00:00
stdenv pkgs/stdenv/booter.nix: Add comment explaining hasCC trickery 2019-12-30 18:09:45 -05:00
test shellFor: Refactor for consistency and cross 2020-01-17 10:46:29 -05:00
tools treewide: Get rid of most `parseDrvName` without breaking compat 2019-11-24 17:22:28 +00:00
top-level Merge together merge bases of 19.09 and master 2020-01-15 18:54:36 -05:00