mirror of
https://github.com/simplex-chat/haskell.nix.git
synced 2026-06-03 09:17:32 +00:00
* Include `tests` in path for cross compiled tests * Add ghc-boot-packages-nix to haskellNixRoots * Fix naming warnings in tests sources * Uses a single cleanGit call for all the tests * Add memoize code for ghc-boot and ghc-extra pkgs * Memoize ghc-boot and ghc-extra pkgs nix * Fix release.nix being more strict than ci.nix by updating filterAttrsOnlyRecursive in ci-lib.nix * Nicer errors when materialized path does not exist * Updated materialization docs * Add internalHackageIndexState to set the index-state used within haskell.nix
36 lines
865 B
Nix
36 lines
865 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}/bin/test-project-flags-exe${stdenv.hostPlatform.extensions.executable}"
|
|
|
|
printf "checking whether executable runs... " >& 2
|
|
cat ${haskellLib.check packages.test-project-flags.components.exes.test-project-flags-exe}
|
|
|
|
touch $out
|
|
'';
|
|
|
|
meta.platforms = platforms.all;
|
|
|
|
passthru = {
|
|
# Attributes used for debugging with nix repl
|
|
inherit pkgSet packages;
|
|
stack-nix = stack.nix;
|
|
};
|
|
};
|
|
}
|