2018-05-11 02:08:26 +01:00
|
|
|
{ pkgs, callPackage }:
|
|
|
|
|
|
|
|
with pkgs;
|
|
|
|
|
|
|
|
{
|
|
|
|
cc-wrapper = callPackage ./cc-wrapper { };
|
|
|
|
cc-wrapper-gcc = callPackage ./cc-wrapper { stdenv = gccStdenv; };
|
|
|
|
cc-wrapper-gcc7 = callPackage ./cc-wrapper { stdenv = gcc7Stdenv; };
|
|
|
|
cc-wrapper-gcc8 = callPackage ./cc-wrapper { stdenv = gcc8Stdenv; };
|
2019-05-07 23:20:58 +01:00
|
|
|
cc-wrapper-gcc9 = callPackage ./cc-wrapper { stdenv = gcc9Stdenv; };
|
2018-05-11 02:08:26 +01:00
|
|
|
cc-wrapper-clang = callPackage ./cc-wrapper { stdenv = llvmPackages.stdenv; };
|
|
|
|
cc-wrapper-libcxx = callPackage ./cc-wrapper { stdenv = llvmPackages.libcxxStdenv; };
|
|
|
|
cc-wrapper-clang-5 = callPackage ./cc-wrapper { stdenv = llvmPackages_5.stdenv; };
|
|
|
|
cc-wrapper-libcxx-5 = callPackage ./cc-wrapper { stdenv = llvmPackages_5.libcxxStdenv; };
|
|
|
|
cc-wrapper-clang-6 = callPackage ./cc-wrapper { stdenv = llvmPackages_6.stdenv; };
|
|
|
|
cc-wrapper-libcxx-6 = callPackage ./cc-wrapper { stdenv = llvmPackages_6.libcxxStdenv; };
|
2018-09-18 21:33:32 +01:00
|
|
|
cc-wrapper-clang-7 = callPackage ./cc-wrapper { stdenv = llvmPackages_7.stdenv; };
|
|
|
|
cc-wrapper-libcxx-7 = callPackage ./cc-wrapper { stdenv = llvmPackages_7.libcxxStdenv; };
|
2019-09-19 21:03:09 +01:00
|
|
|
cc-wrapper-clang-8 = callPackage ./cc-wrapper { stdenv = llvmPackages_8.stdenv; };
|
|
|
|
cc-wrapper-libcxx-8 = callPackage ./cc-wrapper { stdenv = llvmPackages_8.libcxxStdenv; };
|
|
|
|
cc-wrapper-clang-9 = callPackage ./cc-wrapper { stdenv = llvmPackages_9.stdenv; };
|
|
|
|
cc-wrapper-libcxx-9 = callPackage ./cc-wrapper { stdenv = llvmPackages_9.libcxxStdenv; };
|
2018-05-11 02:08:26 +01:00
|
|
|
stdenv-inputs = callPackage ./stdenv-inputs { };
|
|
|
|
|
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.
2019-12-23 20:33:18 +00:00
|
|
|
haskell-shellFor = callPackage ./haskell-shellFor { };
|
2020-11-07 09:50:17 +00:00
|
|
|
haskell-documentationTarball = callPackage ./haskell-documentationTarball { };
|
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.
2019-12-23 20:33:18 +00:00
|
|
|
|
2018-05-11 02:08:26 +01:00
|
|
|
cc-multilib-gcc = callPackage ./cc-wrapper/multilib.nix { stdenv = gccMultiStdenv; };
|
|
|
|
cc-multilib-clang = callPackage ./cc-wrapper/multilib.nix { stdenv = clangMultiStdenv; };
|
|
|
|
|
2020-10-25 21:17:24 +00:00
|
|
|
install-shell-files = callPackage ./install-shell-files {};
|
|
|
|
|
2018-10-03 10:54:42 +01:00
|
|
|
kernel-config = callPackage ./kernel.nix {};
|
|
|
|
|
2018-08-01 10:58:07 +01:00
|
|
|
ld-library-path = callPackage ./ld-library-path {};
|
|
|
|
|
2018-05-11 02:08:26 +01:00
|
|
|
macOSSierraShared = callPackage ./macos-sierra-shared {};
|
2018-07-21 03:43:55 +01:00
|
|
|
|
|
|
|
cross = callPackage ./cross {};
|
2018-09-16 18:53:45 +01:00
|
|
|
|
2020-10-17 08:43:33 +01:00
|
|
|
rustCustomSysroot = callPackage ./rust-sysroot {};
|
2020-11-29 16:23:00 +00:00
|
|
|
buildRustCrate = callPackage ../build-support/rust/build-rust-crate/test { };
|
2020-10-17 08:43:33 +01:00
|
|
|
|
2018-10-02 20:49:54 +01:00
|
|
|
nixos-functions = callPackage ./nixos-functions {};
|
|
|
|
|
2018-09-16 18:53:45 +01:00
|
|
|
patch-shebangs = callPackage ./patch-shebangs {};
|
2018-11-27 02:58:17 +00:00
|
|
|
|
2020-04-11 00:47:44 +01:00
|
|
|
texlive = callPackage ./texlive {};
|
|
|
|
|
2018-11-27 02:58:17 +00:00
|
|
|
writers = callPackage ../build-support/writers/test.nix {};
|
2018-05-11 02:08:26 +01:00
|
|
|
}
|