2018-05-11 03:08:26 +02: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-08 00:20:58 +02:00
|
|
|
cc-wrapper-gcc9 = callPackage ./cc-wrapper { stdenv = gcc9Stdenv; };
|
2018-05-11 03:08:26 +02: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 22:33:32 +02: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 22:03:09 +02: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 03:08:26 +02:00
|
|
|
stdenv-inputs = callPackage ./stdenv-inputs { };
|
|
|
|
|
2022-05-29 10:23:16 +02:00
|
|
|
config = callPackage ./config.nix { };
|
|
|
|
|
2021-05-01 13:24:25 +02:00
|
|
|
haskell = callPackage ./haskell { };
|
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 21:33:18 +01:00
|
|
|
|
2018-05-11 03:08:26 +02:00
|
|
|
cc-multilib-gcc = callPackage ./cc-wrapper/multilib.nix { stdenv = gccMultiStdenv; };
|
|
|
|
cc-multilib-clang = callPackage ./cc-wrapper/multilib.nix { stdenv = clangMultiStdenv; };
|
|
|
|
|
2022-06-30 19:49:54 +02:00
|
|
|
fetchurl = callPackages ../build-support/fetchurl/tests.nix { };
|
2021-12-20 13:12:30 +01:00
|
|
|
fetchpatch = callPackages ../build-support/fetchpatch/tests.nix { };
|
2022-05-17 20:49:33 +02:00
|
|
|
fetchzip = callPackages ../build-support/fetchzip/tests.nix { };
|
2021-12-20 13:12:30 +01:00
|
|
|
fetchgit = callPackages ../build-support/fetchgit/tests.nix { };
|
|
|
|
fetchFirefoxAddon = callPackages ../build-support/fetchfirefoxaddon/tests.nix { };
|
|
|
|
|
2020-10-25 22:17:24 +01:00
|
|
|
install-shell-files = callPackage ./install-shell-files {};
|
|
|
|
|
2018-10-03 11:54:42 +02:00
|
|
|
kernel-config = callPackage ./kernel.nix {};
|
|
|
|
|
2018-08-01 11:58:07 +02:00
|
|
|
ld-library-path = callPackage ./ld-library-path {};
|
|
|
|
|
2018-05-11 03:08:26 +02:00
|
|
|
macOSSierraShared = callPackage ./macos-sierra-shared {};
|
2018-07-21 04:43:55 +02:00
|
|
|
|
|
|
|
cross = callPackage ./cross {};
|
2018-09-16 19:53:45 +02:00
|
|
|
|
2021-11-04 00:20:56 +01:00
|
|
|
php = recurseIntoAttrs (callPackages ./php {});
|
|
|
|
|
2020-10-17 09:43:33 +02:00
|
|
|
rustCustomSysroot = callPackage ./rust-sysroot {};
|
2020-11-29 17:23:00 +01:00
|
|
|
buildRustCrate = callPackage ../build-support/rust/build-rust-crate/test { };
|
2021-05-08 11:33:29 +02:00
|
|
|
importCargoLock = callPackage ../build-support/rust/test/import-cargo-lock { };
|
2020-10-17 09:43:33 +02:00
|
|
|
|
2021-04-21 12:55:05 +02:00
|
|
|
vim = callPackage ./vim {};
|
|
|
|
|
2018-10-02 21:49:54 +02:00
|
|
|
nixos-functions = callPackage ./nixos-functions {};
|
|
|
|
|
2018-09-16 19:53:45 +02:00
|
|
|
patch-shebangs = callPackage ./patch-shebangs {};
|
2018-11-27 03:58:17 +01:00
|
|
|
|
2020-04-11 01:47:44 +02:00
|
|
|
texlive = callPackage ./texlive {};
|
|
|
|
|
2021-03-09 19:04:03 +01:00
|
|
|
cuda = callPackage ./cuda { };
|
|
|
|
|
2021-11-01 00:06:03 +01:00
|
|
|
trivial-builders = recurseIntoAttrs {
|
|
|
|
writeStringReferencesToFile = callPackage ../build-support/trivial-builders/test/writeStringReferencesToFile.nix {};
|
2022-03-03 08:26:30 +01:00
|
|
|
writeTextFile = callPackage ../build-support/trivial-builders/test/write-text-file.nix {};
|
2021-11-01 00:06:03 +01:00
|
|
|
references = callPackage ../build-support/trivial-builders/test/references.nix {};
|
|
|
|
overriding = callPackage ../build-support/trivial-builders/test-overriding.nix {};
|
2021-12-30 13:12:34 +01:00
|
|
|
concat = callPackage ../build-support/trivial-builders/test/concat-test.nix {};
|
2021-11-01 00:06:03 +01:00
|
|
|
};
|
2021-05-14 17:27:25 +02:00
|
|
|
|
2018-11-27 03:58:17 +01:00
|
|
|
writers = callPackage ../build-support/writers/test.nix {};
|
2021-10-25 07:53:15 +02:00
|
|
|
|
2022-05-09 14:18:40 +02:00
|
|
|
testers = callPackage ../build-support/testers/test/default.nix {};
|
|
|
|
|
2021-10-25 07:53:15 +02:00
|
|
|
dhall = callPackage ./dhall { };
|
2021-06-22 23:05:38 +02:00
|
|
|
|
2022-05-10 15:51:43 +02:00
|
|
|
makeWrapper = callPackage ./make-wrapper { };
|
|
|
|
makeBinaryWrapper = callPackage ./make-binary-wrapper {
|
|
|
|
makeBinaryWrapper = pkgs.makeBinaryWrapper.override {
|
2022-05-12 15:23:38 +02:00
|
|
|
# Enable sanitizers in the tests only, to avoid the performance cost in regular usage.
|
|
|
|
# The sanitizers cause errors on aarch64-darwin, see https://github.com/NixOS/nixpkgs/pull/150079#issuecomment-994132734
|
2022-05-10 15:51:43 +02:00
|
|
|
sanitizers = pkgs.lib.optionals (! (pkgs.stdenv.isDarwin && pkgs.stdenv.isAarch64))
|
|
|
|
[ "undefined" "address" ];
|
|
|
|
};
|
|
|
|
};
|
2022-03-28 08:51:25 +02:00
|
|
|
|
|
|
|
pkgs-lib = recurseIntoAttrs (import ../pkgs-lib/tests { inherit pkgs; });
|
2018-05-11 03:08:26 +02:00
|
|
|
}
|