mirror of
https://github.com/simplex-chat/haskell.nix.git
synced 2026-06-03 09:17:32 +00:00
d1102d342c
* Include `tests` in path for cross compiled tests * Add ghc-boot-packages-nix to haskellNixRoots * Fix naming warnings in tests sources * Uses a single cleanGit call for all the tests * Add memoize code for ghc-boot and ghc-extra pkgs * Memoize ghc-boot and ghc-extra pkgs nix * Fix release.nix being more strict than ci.nix by updating filterAttrsOnlyRecursive in ci-lib.nix * Nicer errors when materialized path does not exist * Updated materialization docs * Add internalHackageIndexState to set the index-state used within haskell.nix
24 lines
651 B
Nix
24 lines
651 B
Nix
{ stdenv, pkgs, mkStackPkgSet, haskellLib, testSrc }:
|
|
|
|
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;
|
|
}
|