on cc35ee6 help sign in
37 lines 920 B history raw
1{ stdenv, lib, stackProject', recurseIntoAttrs, haskellLib, testSrc, compiler-nix-name, evalPackages }:
3with lib;
5let
6 project = stackProject' {
7 src = testSrc "project-flags";
8 inherit evalPackages;
9 };
10 packages = project.hsPkgs;
12in recurseIntoAttrs {
13 meta.disabled = compiler-nix-name != "ghc865";
14 ifdInputs = {
15 inherit (project) stack-nix;
16 };
17 run = stdenv.mkDerivation {
18 name = "callStackToNix-test";
20 buildCommand = ''
21 exe="${packages.test-project-flags.components.exes.test-project-flags-exe.exePath}"
23 printf "checking whether executable runs... " >& 2
24 cat ${haskellLib.check packages.test-project-flags.components.exes.test-project-flags-exe}/test-stdout
26 touch $out
27 '';
29 meta.platforms = platforms.all;
31 passthru = {
32 # Attributes used for debugging with nix repl
33 inherit pkgSet packages;
34 stack-nix = stack.nix;
35 };
36 };