Files
haskell.nix/test/stack-simple/default.nix
T
Hamish MackenzieandGitHub a9b01221dd Replace collectRunComponents with haskellLib.check (#316)
This change replaces `passthru.run` and `collectRunComponents` with
`haskellLib.check` and `$pkg.checks`.

Uses `ln -s` instead of `cp` for DLLs to avoid duplicating them.

Adds features to help debugging eval issues with haskell.nix/release.nix.
The ifdInputLevel can be set to limit the jobs included to control
how much work is done at the eval stage when looking for issues.

Reduce CI times by excluding older ghc versions from haskellNixRoots
(GHC 8.6.3 and 8.6.4)

Sets `preferLocalBuild=false` on `callCabalProjectToNix` and `callStackToNix`
to ensure they are cached on hydra for both Linux and macOS.

Fix `data-dir:` when cleaning components.
`normalizeRelativeDir` adds a slash on to the end of `dataDir`.
Adding another one here results in `//` and files are left out by
mistake.
2019-11-29 23:28:47 +13:00

24 lines
642 B
Nix

{ stdenv, pkgs, mkStackPkgSet, haskellLib }:
with stdenv.lib;
let
# ./pkgs.nix and ./stack-simple.nix are generated by running
# stack-to-nix -o .
pkgSet = mkStackPkgSet {
stack-pkgs = import ./pkgs.nix;
pkg-def-extras = [];
modules = [];
};
packages = pkgSet.config.hsPkgs;
in pkgs.recurseIntoAttrs {
stack-simple-exe = (haskellLib.check packages.stack-simple.components.exes.stack-simple-exe) // {
# Attributes used for debugging with nix repl
inherit pkgSet packages;
};
stack-simple-test = packages.stack-simple.checks.stack-simple-test;
stack-simple-checks = packages.stack-simple.checks;
}