on 147cf21 help sign in
33 lines 726 B history raw
1{ stdenv, mkStackPkgSet, callStackToNix, importAndFilterProject }:
3with stdenv.lib;
5let
6 stack = (importAndFilterProject (callStackToNix {
7 src = ./.;
8 }));
9 pkgSet = mkStackPkgSet {
10 stack-pkgs = stack.pkgs;
11 };
12 packages = pkgSet.config.hsPkgs;
13in
14 stdenv.mkDerivation {
15 name = "callStackToNix-test";
17 buildCommand = ''
18 exe="${packages.test-project-flags.components.exes.test-project-flags-exe}/bin/test-project-flags-exe"
20 printf "checking whether executable runs... " >& 2
21 $exe
23 touch $out
24 '';
26 meta.platforms = platforms.all;
28 passthru = {
29 # Attributes used for debugging with nix repl
30 inherit pkgSet packages;
31 stack-nix = stack.nix;
32 };
33 }