on fdcb2da help sign in
35 lines 700 B history raw
1{ stdenv, mkStackPkgSet }:
3with stdenv.lib;
5let
6 # ./pkgs.nix and ./stack-simple.nix are generated by running
7 # stack-to-nix -o .
8 pkgSet = mkStackPkgSet {
9 stack-pkgs = import ./pkgs.nix;
10 pkg-def-extras = [];
11 modules = [];
12 };
14 packages = pkgSet.config.hsPkgs;
16in
17 stdenv.mkDerivation {
18 name = "stack-simple-test";
20 buildCommand = ''
21 exe="${packages.stack-simple.components.exes.stack-simple-exe}/bin/stack-simple-exe"
23 printf "checking whether executable runs... " >& 2
24 $exe
26 touch $out
27 '';
29 meta.platforms = platforms.all;
31 passthru = {
32 # Attributes used for debugging with nix repl
33 inherit pkgSet packages;
34 };
35 }