mirror of
https://github.com/simplex-chat/haskell.nix.git
synced 2026-06-03 09:17:32 +00:00
Fixes ghcjs 8.6.5 and 8.8.4. Uses emscripten for ghcjs 8.8 and adds scripts for building ghcjs 8.8. Many fixes for ghcjs test failures. Includes relocatableConfigFiles for making relocatable ghcjs bundles.
36 lines
814 B
Nix
36 lines
814 B
Nix
{ stdenv, stackProject', recurseIntoAttrs, haskellLib, testSrc }:
|
|
|
|
with stdenv.lib;
|
|
|
|
let
|
|
project = stackProject' {
|
|
src = testSrc "project-flags";
|
|
};
|
|
packages = project.hsPkgs;
|
|
|
|
in recurseIntoAttrs {
|
|
ifdInputs = {
|
|
inherit (project) stack-nix;
|
|
};
|
|
run = stdenv.mkDerivation {
|
|
name = "callStackToNix-test";
|
|
|
|
buildCommand = ''
|
|
exe="${packages.test-project-flags.components.exes.test-project-flags-exe.exePath}"
|
|
|
|
printf "checking whether executable runs... " >& 2
|
|
cat ${haskellLib.check packages.test-project-flags.components.exes.test-project-flags-exe}/test-stdout
|
|
|
|
touch $out
|
|
'';
|
|
|
|
meta.platforms = platforms.all;
|
|
|
|
passthru = {
|
|
# Attributes used for debugging with nix repl
|
|
inherit pkgSet packages;
|
|
stack-nix = stack.nix;
|
|
};
|
|
};
|
|
}
|