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