Files
haskell.nix/test/stack-simple/default.nix
T
Hamish Mackenzie d1102d342c Add pins and materialization for ghc-boot-packages and ghc-extra-packages (#546)
* 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
2020-04-20 13:27:52 +12:00

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;
}