mirror of
https://github.com/simplex-chat/haskell.nix.git
synced 2026-06-03 09:17:32 +00:00
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.
24 lines
642 B
Nix
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;
|
|
}
|