Files
haskell.nix/test/stack-simple/default.nix
T
Peter Becich 5f2f567c0d use Cabal 3.6.2.0 (#1328)
* use Cabal 3.6.2.0

* ghcjs 8.10.7 materialization update

* another ghcjs 8.10.7 materialization update
2022-01-04 17:53:33 +13:00

26 lines
795 B
Nix

{ stdenv, lib, pkgs, mkStackPkgSet, haskellLib, testSrc, compiler-nix-name }:
with 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 {
meta.disabled = compiler-nix-name != "ghc865";
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;
stack-simple-shell = packages.shellFor { tools = { cabal = "3.6.2.0"; }; };
}