on edd1d21 help sign in
35 lines 865 B history raw
1{ stdenv, stackProject', recurseIntoAttrs, haskellLib, testSrc }:
3with stdenv.lib;
5let
6 project = stackProject' {
7 src = testSrc "project-flags";
8 };
9 packages = project.hsPkgs;
11in recurseIntoAttrs {
12 ifdInputs = {
13 inherit (project) stack-nix;
14 };
15 run = stdenv.mkDerivation {
16 name = "callStackToNix-test";
18 buildCommand = ''
19 exe="${packages.test-project-flags.components.exes.test-project-flags-exe}/bin/test-project-flags-exe${stdenv.hostPlatform.extensions.executable}"
21 printf "checking whether executable runs... " >& 2
22 cat ${haskellLib.check packages.test-project-flags.components.exes.test-project-flags-exe}
24 touch $out
25 '';
27 meta.platforms = platforms.all;
29 passthru = {
30 # Attributes used for debugging with nix repl
31 inherit pkgSet packages;
32 stack-nix = stack.nix;
33 };
34 };