mirror of
https://github.com/simplex-chat/haskell.nix.git
synced 2026-06-03 09:17:32 +00:00
36 lines
700 B
Nix
36 lines
700 B
Nix
{ stdenv, mkStackPkgSet }:
|
|
|
|
with stdenv.lib;
|
|
|
|
let
|
|
# ./pkgs.nix and ./stack-simple.nix are generated by running
|
|
# stack-to-nix -o .
|
|
pkgSet = mkStackPkgSet {
|
|
stack-pkgs = import ./pkgs.nix;
|
|
pkg-def-extras = [];
|
|
modules = [];
|
|
};
|
|
|
|
packages = pkgSet.config.hsPkgs;
|
|
|
|
in
|
|
stdenv.mkDerivation {
|
|
name = "stack-simple-test";
|
|
|
|
buildCommand = ''
|
|
exe="${packages.stack-simple.components.exes.stack-simple-exe}/bin/stack-simple-exe"
|
|
|
|
printf "checking whether executable runs... " >& 2
|
|
$exe
|
|
|
|
touch $out
|
|
'';
|
|
|
|
meta.platforms = platforms.all;
|
|
|
|
passthru = {
|
|
# Attributes used for debugging with nix repl
|
|
inherit pkgSet packages;
|
|
};
|
|
}
|