Fix ghc 8.10 windows cross (boot with 8.6.5) (#865)

It looks like we can't use 8.8 for booting due to
https://gitlab.haskell.org/ghc/ghc/-/issues/18143

* Adds nixpkgs 20.09 to get mingw-w64 version 6
  (also needed for ghc 8.10 windows cross compile)

* Add materialization for ghc 8.10.2 windows cross

* Fix issue with harfbuzz override so it works with nixpkgs 20.09

* Fixes eval time issue for windows index-state test (turns off native-dns cabal flag for windows)

* Include exe extension for windows in coverage test

lib:ghc is still broken for ghc 8.10 (all variants), but it always has been and we should try to fix it properly, but it will be very tricky.
This commit is contained in:
Hamish Mackenzie 2020-10-07 15:42:32 +13:00 committed by GitHub
parent 8f5819c0b8
commit 6134e66e1d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
16 changed files with 1236 additions and 8 deletions

5
ci.nix
View File

@ -11,6 +11,7 @@
nixpkgsVersions = {
"R1909" = "nixpkgs-1909";
"R2003" = "nixpkgs-2003";
"R2009" = "nixpkgs-2009";
};
compilerNixNames = nixpkgsName: nixpkgs: builtins.mapAttrs (compiler-nix-name: runTests: {
inherit (import ./default.nix { inherit checkMaterialization; }) nixpkgsArgs;
@ -29,6 +30,8 @@
ghc884 = true;
ghc8101 = false;
ghc8102 = true;
} // nixpkgs.lib.optionalAttrs (nixpkgsName == "R2009") {
ghc8102 = true;
});
systems = nixpkgs: nixpkgs.lib.filterAttrs (_: v: builtins.elem v supportedSystems) {
# I wanted to take these from 'lib.systems.examples', but apparently there isn't one for linux!
@ -39,7 +42,7 @@
# We need to use the actual nixpkgs version we're working with here, since the values
# of 'lib.systems.examples' are not understood between all versions
let lib = nixpkgs.lib;
in lib.optionalAttrs (system == "x86_64-linux" && compiler-nix-name != "ghc8101" && compiler-nix-name != "ghc8102") {
in lib.optionalAttrs (system == "x86_64-linux" && (nixpkgsName == "R2009" || (compiler-nix-name != "ghc8101" && compiler-nix-name != "ghc8102"))) {
# Windows cross compilation is currently broken on macOS
inherit (lib.systems.examples) mingwW64;
} // lib.optionalAttrs (system == "x86_64-linux") {

View File

@ -0,0 +1,136 @@
{ system
, compiler
, flags
, pkgs
, hsPkgs
, pkgconfPkgs
, errorHandler
, config
, ... }:
{
flags = { integer-simple = false; };
package = {
specVersion = "1.10";
identifier = { name = "bytestring"; version = "0.10.10.0"; };
license = "BSD-3-Clause";
copyright = "Copyright (c) Don Stewart 2005-2009,\n(c) Duncan Coutts 2006-2015,\n(c) David Roundy 2003-2005,\n(c) Jasper Van der Jeugt 2010,\n(c) Simon Meier 2010-2013.";
maintainer = "Duncan Coutts <duncan@community.haskell.org>";
author = "Don Stewart,\nDuncan Coutts";
homepage = "https://github.com/haskell/bytestring";
url = "";
synopsis = "Fast, compact, strict and lazy byte strings with a list interface";
description = "An efficient compact, immutable byte string type (both strict and lazy)\nsuitable for binary or 8-bit character data.\n\nThe 'ByteString' type represents sequences of bytes or 8-bit characters.\nIt is suitable for high performance use, both in terms of large data\nquantities, or high speed requirements. The 'ByteString' functions follow\nthe same style as Haskell\\'s ordinary lists, so it is easy to convert code\nfrom using 'String' to 'ByteString'.\n\nTwo 'ByteString' variants are provided:\n\n* Strict 'ByteString's keep the string as a single large array. This\nmakes them convenient for passing data between C and Haskell.\n\n* Lazy 'ByteString's use a lazy list of strict chunks which makes it\nsuitable for I\\/O streaming tasks.\n\nThe @Char8@ modules provide a character-based view of the same\nunderlying 'ByteString' types. This makes it convenient to handle mixed\nbinary and 8-bit character content (which is common in many file formats\nand network protocols).\n\nThe 'Builder' module provides an efficient way to build up 'ByteString's\nin an ad-hoc way by repeated concatenation. This is ideal for fast\nserialisation or pretty printing.\n\nThere is also a 'ShortByteString' type which has a lower memory overhead\nand can can be converted to or from a 'ByteString', but supports very few\nother operations. It is suitable for keeping many short strings in memory.\n\n'ByteString's are not designed for Unicode. For Unicode strings you should\nuse the 'Text' type from the @text@ package.\n\nThese modules are intended to be imported qualified, to avoid name clashes\nwith \"Prelude\" functions, e.g.\n\n> import qualified Data.ByteString as BS";
buildType = "Simple";
isLocal = true;
detailLevel = "FullDetails";
licenseFiles = [ "LICENSE" ];
dataDir = "";
dataFiles = [];
extraSrcFiles = [ "README.md" "Changelog.md" ];
extraTmpFiles = [];
extraDocFiles = [];
};
components = {
"library" = {
depends = ([
(hsPkgs."base" or (errorHandler.buildDepError "base"))
(hsPkgs."ghc-prim" or (errorHandler.buildDepError "ghc-prim"))
(hsPkgs."deepseq" or (errorHandler.buildDepError "deepseq"))
] ++ (pkgs.lib).optionals (compiler.isGhc && (compiler.version).ge "6.11") ((pkgs.lib).optional (!flags.integer-simple) (hsPkgs."integer-gmp" or (errorHandler.buildDepError "integer-gmp")))) ++ (pkgs.lib).optional (compiler.isGhc && (compiler.version).ge "6.9" && (compiler.isGhc && (compiler.version).lt "6.11")) (hsPkgs."integer" or (errorHandler.buildDepError "integer"));
buildable = true;
modules = [
"Data/ByteString/Builder/ASCII"
"Data/ByteString/Builder/Prim/Binary"
"Data/ByteString/Builder/Prim/ASCII"
"Data/ByteString/Builder/Prim/Internal/Floating"
"Data/ByteString/Builder/Prim/Internal/UncheckedShifts"
"Data/ByteString/Builder/Prim/Internal/Base16"
"Data/ByteString"
"Data/ByteString/Char8"
"Data/ByteString/Unsafe"
"Data/ByteString/Internal"
"Data/ByteString/Lazy"
"Data/ByteString/Lazy/Char8"
"Data/ByteString/Lazy/Internal"
"Data/ByteString/Short"
"Data/ByteString/Short/Internal"
"Data/ByteString/Builder"
"Data/ByteString/Builder/Extra"
"Data/ByteString/Builder/Prim"
"Data/ByteString/Builder/Internal"
"Data/ByteString/Builder/Prim/Internal"
"Data/ByteString/Lazy/Builder"
"Data/ByteString/Lazy/Builder/Extras"
"Data/ByteString/Lazy/Builder/ASCII"
];
cSources = [ "cbits/fpstring.c" "cbits/itoa.c" ];
includeDirs = [ "include" ];
includes = [ "fpstring.h" ];
};
tests = {
"prop-compiled" = {
depends = [
(hsPkgs."base" or (errorHandler.buildDepError "base"))
(hsPkgs."ghc-prim" or (errorHandler.buildDepError "ghc-prim"))
(hsPkgs."deepseq" or (errorHandler.buildDepError "deepseq"))
(hsPkgs."random" or (errorHandler.buildDepError "random"))
(hsPkgs."directory" or (errorHandler.buildDepError "directory"))
(hsPkgs."test-framework" or (errorHandler.buildDepError "test-framework"))
(hsPkgs."test-framework-quickcheck2" or (errorHandler.buildDepError "test-framework-quickcheck2"))
(hsPkgs."QuickCheck" or (errorHandler.buildDepError "QuickCheck"))
];
buildable = true;
modules = [ "Rules" "QuickCheckUtils" "TestFramework" ];
cSources = [ "cbits/fpstring.c" ];
hsSourceDirs = [ "." "tests" ];
includeDirs = [ "include" ];
mainPath = [ "Properties.hs" ];
};
"regressions" = {
depends = [
(hsPkgs."base" or (errorHandler.buildDepError "base"))
(hsPkgs."ghc-prim" or (errorHandler.buildDepError "ghc-prim"))
(hsPkgs."deepseq" or (errorHandler.buildDepError "deepseq"))
(hsPkgs."random" or (errorHandler.buildDepError "random"))
(hsPkgs."directory" or (errorHandler.buildDepError "directory"))
(hsPkgs."test-framework" or (errorHandler.buildDepError "test-framework"))
(hsPkgs."test-framework-hunit" or (errorHandler.buildDepError "test-framework-hunit"))
(hsPkgs."HUnit" or (errorHandler.buildDepError "HUnit"))
];
buildable = false;
cSources = [ "cbits/fpstring.c" ];
hsSourceDirs = [ "." "tests" ];
includeDirs = [ "include" ];
mainPath = [ "Regressions.hs" ];
};
"test-builder" = {
depends = [
(hsPkgs."base" or (errorHandler.buildDepError "base"))
(hsPkgs."ghc-prim" or (errorHandler.buildDepError "ghc-prim"))
(hsPkgs."deepseq" or (errorHandler.buildDepError "deepseq"))
(hsPkgs."QuickCheck" or (errorHandler.buildDepError "QuickCheck"))
(hsPkgs."byteorder" or (errorHandler.buildDepError "byteorder"))
(hsPkgs."dlist" or (errorHandler.buildDepError "dlist"))
(hsPkgs."directory" or (errorHandler.buildDepError "directory"))
(hsPkgs."mtl" or (errorHandler.buildDepError "mtl"))
(hsPkgs."HUnit" or (errorHandler.buildDepError "HUnit"))
(hsPkgs."test-framework" or (errorHandler.buildDepError "test-framework"))
(hsPkgs."test-framework-hunit" or (errorHandler.buildDepError "test-framework-hunit"))
(hsPkgs."test-framework-quickcheck2" or (errorHandler.buildDepError "test-framework-quickcheck2"))
];
buildable = true;
modules = [
"Data/ByteString/Builder/Tests"
"Data/ByteString/Builder/Prim/Tests"
"Data/ByteString/Builder/Prim/TestUtils"
"TestFramework"
];
cSources = [ "cbits/fpstring.c" "cbits/itoa.c" ];
hsSourceDirs = [ "." "tests" "tests/builder" ];
includeDirs = [ "include" ];
includes = [ "fpstring.h" ];
mainPath = [ "TestSuite.hs" ];
};
};
};
} // rec { src = (pkgs.lib).mkDefault ../libraries/bytestring; }

View File

@ -0,0 +1,60 @@
{ system
, compiler
, flags
, pkgs
, hsPkgs
, pkgconfPkgs
, errorHandler
, config
, ... }:
{
flags = {};
package = {
specVersion = "1.22";
identifier = { name = "ghc-boot"; version = "8.10.2"; };
license = "BSD-3-Clause";
copyright = "";
maintainer = "ghc-devs@haskell.org";
author = "";
homepage = "";
url = "";
synopsis = "Shared functionality between GHC and its boot libraries";
description = "This library is shared between GHC, ghc-pkg, and other boot\nlibraries.\n\nA note about \"GHC.PackageDb\": it only deals with the subset of\nthe package database that the compiler cares about: modules\npaths etc and not package metadata like description, authors\netc. It is thus not a library interface to ghc-pkg and is *not*\nsuitable for modifying GHC package databases.\n\nThe package database format and this library are constructed in\nsuch a way that while ghc-pkg depends on Cabal, the GHC library\nand program do not have to depend on Cabal.";
buildType = "Simple";
isLocal = true;
detailLevel = "FullDetails";
licenseFiles = [ "LICENSE" ];
dataDir = "";
dataFiles = [];
extraSrcFiles = [];
extraTmpFiles = [];
extraDocFiles = [];
};
components = {
"library" = {
depends = [
(hsPkgs."base" or (errorHandler.buildDepError "base"))
(hsPkgs."binary" or (errorHandler.buildDepError "binary"))
(hsPkgs."bytestring" or (errorHandler.buildDepError "bytestring"))
(hsPkgs."containers" or (errorHandler.buildDepError "containers"))
(hsPkgs."directory" or (errorHandler.buildDepError "directory"))
(hsPkgs."filepath" or (errorHandler.buildDepError "filepath"))
(hsPkgs."ghc-boot-th" or (errorHandler.buildDepError "ghc-boot-th"))
];
buildable = true;
modules = [
"GHC/BaseDir"
"GHC/LanguageExtensions"
"GHC/PackageDb"
"GHC/Serialized"
"GHC/ForeignSrcLang"
"GHC/HandleEncoding"
"GHC/Platform"
"GHC/Platform/Host"
"GHC/Settings"
"GHC/UniqueSubdir"
"GHC/Version"
];
};
};
} // rec { src = (pkgs.lib).mkDefault ../libraries/ghc-boot; }

View File

@ -0,0 +1,586 @@
{ system
, compiler
, flags
, pkgs
, hsPkgs
, pkgconfPkgs
, errorHandler
, config
, ... }:
{
flags = {
ghci = false;
stage1 = false;
stage2 = false;
stage3 = false;
terminfo = true;
integer-simple = false;
integer-gmp = false;
dynamic-system-linker = true;
};
package = {
specVersion = "1.10";
identifier = { name = "ghc"; version = "8.10.2"; };
license = "BSD-3-Clause";
copyright = "";
maintainer = "glasgow-haskell-users@haskell.org";
author = "The GHC Team";
homepage = "http://www.haskell.org/ghc/";
url = "";
synopsis = "The GHC API";
description = "GHC's functionality can be useful for more things than just\ncompiling Haskell programs. Important use cases are programs\nthat analyse (and perhaps transform) Haskell code. Others\ninclude loading Haskell code dynamically in a GHCi-like manner.\nFor this reason, a lot of GHC's functionality is made available\nthrough this package.";
buildType = "Simple";
isLocal = true;
detailLevel = "FullDetails";
licenseFiles = [ "LICENSE" ];
dataDir = "";
dataFiles = [];
extraSrcFiles = [];
extraTmpFiles = [];
extraDocFiles = [];
};
components = {
"library" = {
depends = ((([
(hsPkgs."base" or (errorHandler.buildDepError "base"))
(hsPkgs."deepseq" or (errorHandler.buildDepError "deepseq"))
(hsPkgs."directory" or (errorHandler.buildDepError "directory"))
(hsPkgs."process" or (errorHandler.buildDepError "process"))
(hsPkgs."bytestring" or (errorHandler.buildDepError "bytestring"))
(hsPkgs."binary" or (errorHandler.buildDepError "binary"))
(hsPkgs."time" or (errorHandler.buildDepError "time"))
(hsPkgs."containers" or (errorHandler.buildDepError "containers"))
(hsPkgs."array" or (errorHandler.buildDepError "array"))
(hsPkgs."filepath" or (errorHandler.buildDepError "filepath"))
(hsPkgs."template-haskell" or (errorHandler.buildDepError "template-haskell"))
(hsPkgs."hpc" or (errorHandler.buildDepError "hpc"))
(hsPkgs."transformers" or (errorHandler.buildDepError "transformers"))
(hsPkgs."ghc-boot" or (errorHandler.buildDepError "ghc-boot"))
(hsPkgs."ghc-boot-th" or (errorHandler.buildDepError "ghc-boot-th"))
(hsPkgs."ghc-heap" or (errorHandler.buildDepError "ghc-heap"))
(hsPkgs."ghci" or (errorHandler.buildDepError "ghci"))
] ++ (if system.isWindows
then [ (hsPkgs."Win32" or (errorHandler.buildDepError "Win32")) ]
else [
(hsPkgs."unix" or (errorHandler.buildDepError "unix"))
] ++ (pkgs.lib).optional (flags.terminfo) (hsPkgs."terminfo" or (errorHandler.buildDepError "terminfo")))) ++ (pkgs.lib).optional (flags.integer-gmp && flags.integer-simple) (hsPkgs."invalid-cabal-flag-settings" or (errorHandler.buildDepError "invalid-cabal-flag-settings"))) ++ (pkgs.lib).optional (flags.integer-gmp) (hsPkgs."integer-gmp" or (errorHandler.buildDepError "integer-gmp"))) ++ (pkgs.lib).optional (flags.integer-simple) (hsPkgs."integer-simple" or (errorHandler.buildDepError "integer-simple"));
buildable = true;
modules = [
"HieTypes"
"HieDebug"
"HieBin"
"HieUtils"
"HieAst"
"Ar"
"FileCleanup"
"DriverBkp"
"BkpSyn"
"NameShape"
"RnModIface"
"Avail"
"AsmUtils"
"BasicTypes"
"ConLike"
"DataCon"
"PatSyn"
"Demand"
"Debug"
"Exception"
"FieldLabel"
"GhcMonad"
"Hooks"
"Id"
"IdInfo"
"Predicate"
"Lexeme"
"Literal"
"Llvm"
"Llvm/AbsSyn"
"Llvm/MetaData"
"Llvm/PpLlvm"
"Llvm/Types"
"LlvmCodeGen"
"LlvmCodeGen/Base"
"LlvmCodeGen/CodeGen"
"LlvmCodeGen/Data"
"LlvmCodeGen/Ppr"
"LlvmCodeGen/Regs"
"LlvmMangler"
"MkId"
"Module"
"Name"
"NameEnv"
"NameSet"
"OccName"
"RdrName"
"NameCache"
"SrcLoc"
"UniqSupply"
"Unique"
"Var"
"VarEnv"
"VarSet"
"UnVarGraph"
"BlockId"
"CLabel"
"Cmm"
"CmmBuildInfoTables"
"CmmPipeline"
"CmmCallConv"
"CmmCommonBlockElim"
"CmmImplementSwitchPlans"
"CmmContFlowOpt"
"CmmExpr"
"CmmInfo"
"CmmLex"
"CmmLint"
"CmmLive"
"CmmMachOp"
"CmmMonad"
"CmmSwitch"
"CmmNode"
"CmmOpt"
"CmmParse"
"CmmProcPoint"
"CmmSink"
"CmmType"
"CmmUtils"
"CmmLayoutStack"
"CliOption"
"EnumSet"
"GhcNameVersion"
"FileSettings"
"MkGraph"
"PprBase"
"PprC"
"PprCmm"
"PprCmmDecl"
"PprCmmExpr"
"Bitmap"
"GHC/Platform/Regs"
"GHC/Platform/ARM"
"GHC/Platform/ARM64"
"GHC/Platform/NoRegs"
"GHC/Platform/PPC"
"GHC/Platform/S390X"
"GHC/Platform/SPARC"
"GHC/Platform/X86"
"GHC/Platform/X86_64"
"GHC/StgToCmm/CgUtils"
"GHC/StgToCmm"
"GHC/StgToCmm/Bind"
"GHC/StgToCmm/Closure"
"GHC/StgToCmm/DataCon"
"GHC/StgToCmm/Env"
"GHC/StgToCmm/Expr"
"GHC/StgToCmm/Foreign"
"GHC/StgToCmm/Heap"
"GHC/StgToCmm/Hpc"
"GHC/StgToCmm/ArgRep"
"GHC/StgToCmm/Layout"
"GHC/StgToCmm/Monad"
"GHC/StgToCmm/Prim"
"GHC/StgToCmm/Prof"
"GHC/StgToCmm/Ticky"
"GHC/StgToCmm/Utils"
"GHC/StgToCmm/ExtCode"
"SMRep"
"CoreArity"
"CoreFVs"
"CoreLint"
"CorePrep"
"CoreSubst"
"CoreOpt"
"CoreSyn"
"TrieMap"
"CoreTidy"
"CoreUnfold"
"CoreUtils"
"CoreMap"
"CoreSeq"
"CoreStats"
"MkCore"
"PprCore"
"GHC/HsToCore/PmCheck/Oracle"
"GHC/HsToCore/PmCheck/Ppr"
"GHC/HsToCore/PmCheck/Types"
"GHC/HsToCore/PmCheck"
"Coverage"
"Desugar"
"DsArrows"
"DsBinds"
"DsCCall"
"DsExpr"
"DsForeign"
"DsGRHSs"
"DsListComp"
"DsMonad"
"DsUsage"
"DsUtils"
"ExtractDocs"
"Match"
"MatchCon"
"MatchLit"
"GHC/Hs"
"GHC/Hs/Binds"
"GHC/Hs/Decls"
"GHC/Hs/Doc"
"GHC/Hs/Expr"
"GHC/Hs/ImpExp"
"GHC/Hs/Lit"
"GHC/Hs/PlaceHolder"
"GHC/Hs/Extension"
"GHC/Hs/Instances"
"GHC/Hs/Pat"
"GHC/Hs/Types"
"GHC/Hs/Utils"
"GHC/Hs/Dump"
"BinIface"
"BinFingerprint"
"BuildTyCl"
"IfaceEnv"
"IfaceSyn"
"IfaceType"
"ToIface"
"LoadIface"
"MkIface"
"TcIface"
"FlagChecker"
"Annotations"
"CmdLineParser"
"CodeOutput"
"Config"
"Constants"
"DriverMkDepend"
"DriverPhases"
"PipelineMonad"
"DriverPipeline"
"DynFlags"
"ErrUtils"
"Finder"
"GHC"
"GhcMake"
"GhcPlugins"
"GhcPrelude"
"DynamicLoading"
"HeaderInfo"
"HscMain"
"HscStats"
"HscTypes"
"InteractiveEval"
"InteractiveEvalTypes"
"PackageConfig"
"Packages"
"PlatformConstants"
"Plugins"
"TcPluginM"
"PprTyThing"
"Settings"
"StaticPtrTable"
"SysTools"
"SysTools/BaseDir"
"SysTools/Terminal"
"SysTools/ExtraObj"
"SysTools/Info"
"SysTools/Process"
"SysTools/Tasks"
"SysTools/Settings"
"Elf"
"TidyPgm"
"Ctype"
"HaddockUtils"
"Lexer"
"OptCoercion"
"Parser"
"RdrHsSyn"
"ApiAnnotation"
"ForeignCall"
"KnownUniques"
"PrelInfo"
"PrelNames"
"PrelRules"
"PrimOp"
"ToolSettings"
"TysPrim"
"TysWiredIn"
"CostCentre"
"CostCentreState"
"ProfInit"
"RnBinds"
"RnEnv"
"RnExpr"
"RnHsDoc"
"RnNames"
"RnPat"
"RnSource"
"RnSplice"
"RnTypes"
"RnFixity"
"RnUtils"
"RnUnbound"
"CoreMonad"
"CSE"
"FloatIn"
"FloatOut"
"LiberateCase"
"OccurAnal"
"SAT"
"SetLevels"
"SimplCore"
"SimplEnv"
"SimplMonad"
"SimplUtils"
"Simplify"
"SimplStg"
"StgStats"
"StgCse"
"StgLiftLams"
"StgLiftLams/Analysis"
"StgLiftLams/LiftM"
"StgLiftLams/Transformation"
"StgSubst"
"UnariseStg"
"RepType"
"Rules"
"SpecConstr"
"Specialise"
"CoreToStg"
"StgLint"
"StgSyn"
"StgFVs"
"CallArity"
"DmdAnal"
"Exitify"
"WorkWrap"
"WwLib"
"FamInst"
"ClsInst"
"Inst"
"TcAnnotations"
"TcArrows"
"TcBinds"
"TcSigs"
"TcClassDcl"
"TcDefaults"
"TcDeriv"
"TcDerivInfer"
"TcDerivUtils"
"TcEnv"
"TcExpr"
"TcForeign"
"TcGenDeriv"
"TcGenFunctor"
"TcGenGenerics"
"TcHsSyn"
"TcHsType"
"TcInstDcls"
"TcMType"
"TcValidity"
"TcMatches"
"TcPat"
"TcPatSyn"
"TcRnDriver"
"TcBackpack"
"TcRnExports"
"TcRnMonad"
"TcRnTypes"
"Constraint"
"TcOrigin"
"TcRules"
"TcSimplify"
"TcHoleErrors"
"TcHoleFitTypes"
"TcErrors"
"TcTyClsDecls"
"TcTyDecls"
"TcTypeable"
"TcType"
"TcEvidence"
"TcEvTerm"
"TcUnify"
"TcInteract"
"TcCanonical"
"TcFlatten"
"TcSMonad"
"TcTypeNats"
"TcSplice"
"Class"
"Coercion"
"DsMeta"
"THNames"
"FamInstEnv"
"FunDeps"
"InstEnv"
"TyCon"
"CoAxiom"
"Type"
"TyCoRep"
"TyCoFVs"
"TyCoSubst"
"TyCoPpr"
"TyCoTidy"
"Unify"
"Bag"
"Binary"
"BooleanFormula"
"BufWrite"
"Digraph"
"Encoding"
"FastFunctions"
"FastMutInt"
"FastString"
"FastStringEnv"
"Fingerprint"
"FiniteMap"
"FV"
"GraphBase"
"GraphColor"
"GraphOps"
"GraphPpr"
"IOEnv"
"Json"
"ListSetOps"
"Maybes"
"MonadUtils"
"OrdList"
"Outputable"
"Pair"
"Panic"
"PlainPanic"
"PprColour"
"Pretty"
"State"
"Stream"
"StringBuffer"
"UniqDFM"
"UniqDSet"
"UniqFM"
"UniqMap"
"UniqSet"
"Util"
"Hoopl/Block"
"Hoopl/Collections"
"Hoopl/Dataflow"
"Hoopl/Graph"
"Hoopl/Label"
"AsmCodeGen"
"TargetReg"
"NCGMonad"
"Instruction"
"BlockLayout"
"CFG"
"Dominators"
"Format"
"Reg"
"RegClass"
"PIC"
"CPrim"
"X86/Regs"
"X86/RegInfo"
"X86/Instr"
"X86/Cond"
"X86/Ppr"
"X86/CodeGen"
"PPC/Regs"
"PPC/RegInfo"
"PPC/Instr"
"PPC/Cond"
"PPC/Ppr"
"PPC/CodeGen"
"SPARC/Base"
"SPARC/Regs"
"SPARC/Imm"
"SPARC/AddrMode"
"SPARC/Cond"
"SPARC/Instr"
"SPARC/Stack"
"SPARC/ShortcutJump"
"SPARC/Ppr"
"SPARC/CodeGen"
"SPARC/CodeGen/Amode"
"SPARC/CodeGen/Base"
"SPARC/CodeGen/CondCode"
"SPARC/CodeGen/Gen32"
"SPARC/CodeGen/Gen64"
"SPARC/CodeGen/Sanity"
"SPARC/CodeGen/Expand"
"RegAlloc/Liveness"
"RegAlloc/Graph/Main"
"RegAlloc/Graph/Stats"
"RegAlloc/Graph/ArchBase"
"RegAlloc/Graph/ArchX86"
"RegAlloc/Graph/Coalesce"
"RegAlloc/Graph/Spill"
"RegAlloc/Graph/SpillClean"
"RegAlloc/Graph/SpillCost"
"RegAlloc/Graph/TrivColorable"
"RegAlloc/Linear/Main"
"RegAlloc/Linear/JoinToTargets"
"RegAlloc/Linear/State"
"RegAlloc/Linear/Stats"
"RegAlloc/Linear/FreeRegs"
"RegAlloc/Linear/StackMap"
"RegAlloc/Linear/Base"
"RegAlloc/Linear/X86/FreeRegs"
"RegAlloc/Linear/X86_64/FreeRegs"
"RegAlloc/Linear/PPC/FreeRegs"
"RegAlloc/Linear/SPARC/FreeRegs"
"Dwarf"
"Dwarf/Types"
"Dwarf/Constants"
"GHC/ThToHs"
"ByteCodeTypes"
"ByteCodeAsm"
"ByteCodeGen"
"ByteCodeInstr"
"ByteCodeItbls"
"ByteCodeLink"
"Debugger"
"LinkerTypes"
"Linker"
"RtClosureInspect"
"GHCi"
];
cSources = [
"parser/cutils.c"
"ghci/keepCAFsForGHCi.c"
"cbits/genSym.c"
];
hsSourceDirs = [
"."
"backpack"
"basicTypes"
"cmm"
"coreSyn"
"deSugar"
"ghci"
"iface"
"llvmGen"
"main"
"nativeGen"
"parser"
"prelude"
"profiling"
"rename"
"simplCore"
"simplStg"
"specialise"
"stgSyn"
"stranal"
"typecheck"
"types"
"utils"
"hieFile"
];
includeDirs = ([
"."
"parser"
"utils"
] ++ (pkgs.lib).optional (flags.ghci) "../rts/dist/build") ++ (if flags.stage1
then [ "stage1" ]
else if flags.stage2
then [ "stage2" ]
else (pkgs.lib).optional (flags.stage3) "stage2");
};
};
} // rec { src = (pkgs.lib).mkDefault ../compiler; }

View File

@ -0,0 +1,70 @@
{ system
, compiler
, flags
, pkgs
, hsPkgs
, pkgconfPkgs
, errorHandler
, config
, ... }:
{
flags = { ghci = false; };
package = {
specVersion = "1.10";
identifier = { name = "ghci"; version = "8.10.2"; };
license = "BSD-3-Clause";
copyright = "";
maintainer = "ghc-devs@haskell.org";
author = "";
homepage = "";
url = "";
synopsis = "The library supporting GHC's interactive interpreter";
description = "This library offers interfaces which mediate interactions between the\n@ghci@ interactive shell and @iserv@, GHC's out-of-process interpreter\nbackend.";
buildType = "Simple";
isLocal = true;
detailLevel = "FullDetails";
licenseFiles = [ "LICENSE" ];
dataDir = "";
dataFiles = [];
extraSrcFiles = [ "changelog.md" ];
extraTmpFiles = [];
extraDocFiles = [];
};
components = {
"library" = {
depends = [
(hsPkgs."array" or (errorHandler.buildDepError "array"))
(hsPkgs."base" or (errorHandler.buildDepError "base"))
(hsPkgs."binary" or (errorHandler.buildDepError "binary"))
(hsPkgs."bytestring" or (errorHandler.buildDepError "bytestring"))
(hsPkgs."containers" or (errorHandler.buildDepError "containers"))
(hsPkgs."deepseq" or (errorHandler.buildDepError "deepseq"))
(hsPkgs."filepath" or (errorHandler.buildDepError "filepath"))
(hsPkgs."ghc-boot" or (errorHandler.buildDepError "ghc-boot"))
(hsPkgs."ghc-boot-th" or (errorHandler.buildDepError "ghc-boot-th"))
(hsPkgs."ghc-heap" or (errorHandler.buildDepError "ghc-heap"))
(hsPkgs."template-haskell" or (errorHandler.buildDepError "template-haskell"))
(hsPkgs."transformers" or (errorHandler.buildDepError "transformers"))
] ++ (pkgs.lib).optional (!system.isWindows) (hsPkgs."unix" or (errorHandler.buildDepError "unix"));
buildable = true;
modules = [
"GHCi/BreakArray"
"GHCi/BinaryArray"
"GHCi/Message"
"GHCi/ResolvedBCO"
"GHCi/RemoteTypes"
"GHCi/FFI"
"GHCi/InfoTable"
"GHCi/StaticPtrTable"
"GHCi/TH/Binary"
"SizedSeq"
] ++ (pkgs.lib).optionals (flags.ghci) [
"GHCi/Run"
"GHCi/CreateBCO"
"GHCi/ObjLink"
"GHCi/Signals"
"GHCi/TH"
];
};
};
} // rec { src = (pkgs.lib).mkDefault ../libraries/ghci; }

View File

@ -0,0 +1,52 @@
{ system
, compiler
, flags
, pkgs
, hsPkgs
, pkgconfPkgs
, errorHandler
, config
, ... }:
{
flags = {};
package = {
specVersion = "1.10";
identifier = { name = "hpc"; version = "0.6.1.0"; };
license = "BSD-3-Clause";
copyright = "";
maintainer = "ghc-devs@haskell.org";
author = "Andy Gill";
homepage = "";
url = "";
synopsis = "Code Coverage Library for Haskell";
description = "This package provides the code coverage library for Haskell.\n\nSee <http://www.haskell.org/haskellwiki/Haskell_program_coverage> for more\ninformation.";
buildType = "Simple";
isLocal = true;
detailLevel = "FullDetails";
licenseFiles = [ "LICENSE" ];
dataDir = "";
dataFiles = [];
extraSrcFiles = [ "changelog.md" ];
extraTmpFiles = [];
extraDocFiles = [];
};
components = {
"library" = {
depends = [
(hsPkgs."base" or (errorHandler.buildDepError "base"))
(hsPkgs."containers" or (errorHandler.buildDepError "containers"))
(hsPkgs."deepseq" or (errorHandler.buildDepError "deepseq"))
(hsPkgs."directory" or (errorHandler.buildDepError "directory"))
(hsPkgs."filepath" or (errorHandler.buildDepError "filepath"))
(hsPkgs."time" or (errorHandler.buildDepError "time"))
];
buildable = true;
modules = [
"Trace/Hpc/Util"
"Trace/Hpc/Mix"
"Trace/Hpc/Tix"
"Trace/Hpc/Reflect"
];
};
};
} // rec { src = (pkgs.lib).mkDefault ../libraries/hpc; }

View File

@ -0,0 +1,55 @@
{ system
, compiler
, flags
, pkgs
, hsPkgs
, pkgconfPkgs
, errorHandler
, config
, ... }:
{
flags = {};
package = {
specVersion = "1.10";
identifier = { name = "iserv-proxy"; version = "8.10.2"; };
license = "BSD-3-Clause";
copyright = "XXX";
maintainer = "XXX";
author = "XXX";
homepage = "";
url = "";
synopsis = "iserv allows GHC to delegate Tempalte Haskell computations";
description = "GHC can be provided with a path to the iserv binary with\n@-pgmi=/path/to/iserv-bin@, and will in combination with\n@-fexternal-interpreter@, compile Template Haskell though the\n@iserv-bin@ delegate. This is very similar to how ghcjs has been\ncompiling Template Haskell, by spawning a separate delegate (so\ncalled runner on the javascript vm) and evaluating the splices\nthere.\n\niserv can also be used in combination with cross compilation. For\nthis, the @iserv-proxy@ needs to be built on the host, targeting the\nhost (as it is running on the host). @cabal install -flibrary\n-fproxy@ will yield the proxy.\n\nUsing the cabal for the target @arch-platform-target-cabal install\n-flibrary@ will build the required library that contains the ffi\n@startSlave@ function, which needs to be invoked on the target\n(e.g. in an iOS application) to start the remote iserv slave.\n\ncalling the GHC cross compiler with @-fexternal-interpreter\n-pgmi=\$HOME/.cabal/bin/iserv-proxy -opti\\<ip address\\> -opti\\<port\\>@\nwill cause it to compile Template Haskell via the remote at \\<ip address\\>.\n\nThus to get cross compilation with Template Haskell follow the\nfollowing receipt:\n\n* compile the iserv library for your target\n\n> iserv \$ arch-platform-target-cabal install -flibrary\n\n* setup an application for your target that calls the\n* startSlave function. This could be either haskell or your\n* targets ffi capable language, if needed.\n\n> void startSlave(false /* verbose */, 5000 /* port */,\n> \"/path/to/storagelocation/on/target\");\n\n* build the iserv-proxy\n\n> iserv \$ cabal install -flibrary -fproxy\n* Start your iserv-slave app on your target running on say @10.0.0.1:5000@\n* compiler your sources with -fexternal-interpreter and the proxy\n\n> project \$ arch-platform-target-ghc ModuleContainingTH.hs \\\n> -fexternal-interpreter \\\n> -pgmi=\$HOME/.cabal/bin/iserv-proxy \\\n> -opti10.0.0.1 -opti5000\n\nShould something not work as expected, provide @-opti-v@ for verbose\nlogging of the @iserv-proxy@.";
buildType = "Simple";
isLocal = true;
detailLevel = "FullDetails";
licenseFiles = [];
dataDir = "";
dataFiles = [];
extraSrcFiles = [];
extraTmpFiles = [];
extraDocFiles = [];
};
components = {
exes = {
"iserv-proxy" = {
depends = [
(hsPkgs."array" or (errorHandler.buildDepError "array"))
(hsPkgs."base" or (errorHandler.buildDepError "base"))
(hsPkgs."binary" or (errorHandler.buildDepError "binary"))
(hsPkgs."bytestring" or (errorHandler.buildDepError "bytestring"))
(hsPkgs."containers" or (errorHandler.buildDepError "containers"))
(hsPkgs."deepseq" or (errorHandler.buildDepError "deepseq"))
(hsPkgs."directory" or (errorHandler.buildDepError "directory"))
(hsPkgs."network" or (errorHandler.buildDepError "network"))
(hsPkgs."filepath" or (errorHandler.buildDepError "filepath"))
(hsPkgs."ghci" or (errorHandler.buildDepError "ghci"))
(hsPkgs."libiserv" or (errorHandler.buildDepError "libiserv"))
];
buildable = true;
hsSourceDirs = [ "src" ];
mainPath = [ "Main.hs" ];
};
};
};
} // rec { src = (pkgs.lib).mkDefault ../utils/iserv-proxy; }

View File

@ -0,0 +1,54 @@
{ system
, compiler
, flags
, pkgs
, hsPkgs
, pkgconfPkgs
, errorHandler
, config
, ... }:
{
flags = {};
package = {
specVersion = "1.10";
identifier = { name = "iserv"; version = "8.10.2"; };
license = "BSD-3-Clause";
copyright = "XXX";
maintainer = "XXX";
author = "XXX";
homepage = "";
url = "";
synopsis = "iserv allows GHC to delegate Template Haskell computations";
description = "GHC can be provided with a path to the iserv binary with\n@-pgmi=/path/to/iserv-bin@, and will in combination with\n@-fexternal-interpreter@, compile Template Haskell though the\n@iserv-bin@ delegate. This is very similar to how ghcjs has been\ncompiling Template Haskell, by spawning a separate delegate (so\ncalled runner on the javascript vm) and evaluating the splices\nthere.\n\nTo use iserv with cross compilers, please see @libraries/libiserv@\nand @utils/iserv-proxy@.";
buildType = "Simple";
isLocal = true;
detailLevel = "FullDetails";
licenseFiles = [];
dataDir = "";
dataFiles = [];
extraSrcFiles = [];
extraTmpFiles = [];
extraDocFiles = [];
};
components = {
exes = {
"iserv" = {
depends = [
(hsPkgs."array" or (errorHandler.buildDepError "array"))
(hsPkgs."base" or (errorHandler.buildDepError "base"))
(hsPkgs."binary" or (errorHandler.buildDepError "binary"))
(hsPkgs."bytestring" or (errorHandler.buildDepError "bytestring"))
(hsPkgs."containers" or (errorHandler.buildDepError "containers"))
(hsPkgs."deepseq" or (errorHandler.buildDepError "deepseq"))
(hsPkgs."ghci" or (errorHandler.buildDepError "ghci"))
(hsPkgs."libiserv" or (errorHandler.buildDepError "libiserv"))
] ++ (pkgs.lib).optional (!system.isWindows) (hsPkgs."unix" or (errorHandler.buildDepError "unix"));
buildable = true;
cSources = [ "cbits/iservmain.c" ];
hsSourceDirs = [ "src" ];
includeDirs = [ "." ];
mainPath = [ "Main.hs" ] ++ [ "" ];
};
};
};
} // rec { src = (pkgs.lib).mkDefault ../utils/iserv; }

View File

@ -0,0 +1,58 @@
{ system
, compiler
, flags
, pkgs
, hsPkgs
, pkgconfPkgs
, errorHandler
, config
, ... }:
{
flags = { network = false; };
package = {
specVersion = "1.10";
identifier = { name = "libiserv"; version = "8.10.2"; };
license = "BSD-3-Clause";
copyright = "XXX";
maintainer = "XXX";
author = "XXX";
homepage = "";
url = "";
synopsis = "Provides shared functionality between iserv and iserv-proxy";
description = "";
buildType = "Simple";
isLocal = true;
detailLevel = "FullDetails";
licenseFiles = [ "LICENSE" ];
dataDir = "";
dataFiles = [];
extraSrcFiles = [];
extraTmpFiles = [];
extraDocFiles = [];
};
components = {
"library" = {
depends = ([
(hsPkgs."base" or (errorHandler.buildDepError "base"))
(hsPkgs."binary" or (errorHandler.buildDepError "binary"))
(hsPkgs."bytestring" or (errorHandler.buildDepError "bytestring"))
(hsPkgs."containers" or (errorHandler.buildDepError "containers"))
(hsPkgs."deepseq" or (errorHandler.buildDepError "deepseq"))
(hsPkgs."ghci" or (errorHandler.buildDepError "ghci"))
] ++ (pkgs.lib).optionals (flags.network) [
(hsPkgs."network" or (errorHandler.buildDepError "network"))
(hsPkgs."directory" or (errorHandler.buildDepError "directory"))
(hsPkgs."filepath" or (errorHandler.buildDepError "filepath"))
]) ++ (pkgs.lib).optional (!system.isWindows) (hsPkgs."unix" or (errorHandler.buildDepError "unix"));
buildable = true;
modules = [
"Lib"
"GHCi/Utils"
] ++ (pkgs.lib).optionals (flags.network) [
"Remote/Message"
"Remote/Slave"
];
hsSourceDirs = [ "src" ];
};
};
} // rec { src = (pkgs.lib).mkDefault ../libraries/libiserv; }

View File

@ -0,0 +1,46 @@
{ system
, compiler
, flags
, pkgs
, hsPkgs
, pkgconfPkgs
, errorHandler
, config
, ... }:
{
flags = {};
package = {
specVersion = "1.10";
identifier = { name = "remote-iserv"; version = "8.10.2"; };
license = "BSD-3-Clause";
copyright = "XXX";
maintainer = "Moritz Angermann <moritz.angermann@gmail.com>";
author = "Moritz Angermann <moritz.angermann@gmail.com>";
homepage = "";
url = "";
synopsis = "iserv allows GHC to delegate Tempalte Haskell computations";
description = "This is a very simple remote runner for iserv, to be used together\nwith iserv-proxy. The foundamental idea is that this this wrapper\nstarts running libiserv on a given port to which iserv-proxy will\nthen connect.";
buildType = "Simple";
isLocal = true;
detailLevel = "FullDetails";
licenseFiles = [];
dataDir = "";
dataFiles = [];
extraSrcFiles = [];
extraTmpFiles = [];
extraDocFiles = [];
};
components = {
exes = {
"remote-iserv" = {
depends = [
(hsPkgs."base" or (errorHandler.buildDepError "base"))
(hsPkgs."libiserv" or (errorHandler.buildDepError "libiserv"))
];
buildable = true;
hsSourceDirs = [ "src" ];
mainPath = [ "Cli.hs" ];
};
};
};
} // rec { src = (pkgs.lib).mkDefault ../utils/remote-iserv; }

View File

@ -0,0 +1,88 @@
{
pkgs = hackage:
{
packages = {
"binary".revision = (((hackage."binary")."0.8.8.0").revisions).default;
"ghc-prim".revision = (((hackage."ghc-prim")."0.6.1").revisions).default;
"ghc-heap".revision = (((hackage."ghc-heap")."8.10.2").revisions).default;
"rts".revision = (((hackage."rts")."1.0").revisions).default;
"deepseq".revision = (((hackage."deepseq")."1.4.4.0").revisions).default;
"network".revision = (((hackage."network")."2.8.0.1").revisions).default;
"directory".revision = (((hackage."directory")."1.3.6.1").revisions).default;
"template-haskell".revision = (((hackage."template-haskell")."2.16.0.0").revisions).default;
"containers".revision = (((hackage."containers")."0.6.2.1").revisions).default;
"base".revision = (((hackage."base")."4.14.1.0").revisions).default;
"time".revision = (((hackage."time")."1.9.3").revisions).default;
"transformers".revision = (((hackage."transformers")."0.5.6.2").revisions).default;
"filepath".revision = (((hackage."filepath")."1.4.2.1").revisions).default;
"process".revision = (((hackage."process")."1.6.9.0").revisions).default;
"pretty".revision = (((hackage."pretty")."1.1.3.6").revisions).default;
"ghc-boot-th".revision = (((hackage."ghc-boot-th")."8.10.2").revisions).default;
"array".revision = (((hackage."array")."0.5.4.0").revisions).default;
"Win32".revision = (((hackage."Win32")."2.6.2.0").revisions).default;
"integer-gmp".revision = (((hackage."integer-gmp")."1.0.3.0").revisions).default;
};
compiler = {
version = "8.10.2";
nix-name = "ghc8102";
packages = {
"ghc-prim" = "0.6.1";
"ghc-heap" = "8.10.2";
"rts" = "1.0";
"deepseq" = "1.4.4.0";
"template-haskell" = "2.16.0.0";
"containers" = "0.6.2.1";
"base" = "4.14.1.0";
"transformers" = "0.5.6.2";
"filepath" = "1.4.2.1";
"pretty" = "1.1.3.6";
"ghc-boot-th" = "8.10.2";
"array" = "0.5.4.0";
"integer-gmp" = "1.0.3.0";
};
};
};
extras = hackage:
{
packages = {
ghc = ./.plan.nix/ghc.nix;
bytestring = ./.plan.nix/bytestring.nix;
remote-iserv = ./.plan.nix/remote-iserv.nix;
iserv-proxy = ./.plan.nix/iserv-proxy.nix;
hpc = ./.plan.nix/hpc.nix;
libiserv = ./.plan.nix/libiserv.nix;
ghc-boot = ./.plan.nix/ghc-boot.nix;
ghci = ./.plan.nix/ghci.nix;
iserv = ./.plan.nix/iserv.nix;
};
};
modules = [
({ lib, ... }:
{
packages = {
"ghc" = {
flags = {
"stage1" = lib.mkOverride 900 false;
"stage2" = lib.mkOverride 900 false;
"integer-gmp" = lib.mkOverride 900 false;
"stage3" = lib.mkOverride 900 false;
"dynamic-system-linker" = lib.mkOverride 900 true;
"ghci" = lib.mkOverride 900 true;
"integer-simple" = lib.mkOverride 900 false;
"terminfo" = lib.mkOverride 900 true;
};
};
"bytestring" = {
flags = { "integer-simple" = lib.mkOverride 900 false; };
};
"remote-iserv" = { flags = {}; };
"iserv-proxy" = { flags = {}; };
"hpc" = { flags = {}; };
"libiserv" = { flags = { "network" = lib.mkOverride 900 true; }; };
"ghc-boot" = { flags = {}; };
"ghci" = { flags = { "ghci" = lib.mkOverride 900 true; }; };
"iserv" = { flags = {}; };
};
})
];
}

View File

@ -76,5 +76,17 @@
"type": "tarball",
"url": "https://github.com/NixOS/nixpkgs/archive/732684b720f829056dcb62380c2c17e4d3ebd947.tar.gz",
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
},
"nixpkgs-2009": {
"branch": "nixpkgs-20.09-darwin",
"description": "Nix Packages collection",
"homepage": null,
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "07e5844fdf6fe99f41229d7392ce81cfe191bcfc",
"sha256": "0p2z6jidm4rlp2yjfl553q234swj1vxl8z0z8ra1hm61lfrlcmb9",
"type": "tarball",
"url": "https://github.com/NixOS/nixpkgs/archive/07e5844fdf6fe99f41229d7392ce81cfe191bcfc.tar.gz",
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
}
}

View File

@ -331,7 +331,8 @@ in {
extra-passthru = { buildGHC = final.buildPackages.haskell-nix.compiler.ghc8101; };
bootPkgs = bootPkgs // {
ghc = final.buildPackages.buildPackages.haskell-nix.compiler.ghc884;
# Not using 8.8 due to https://gitlab.haskell.org/ghc/ghc/-/issues/18143
ghc = final.buildPackages.buildPackages.haskell-nix.compiler.ghc865;
};
inherit sphinx installDeps;
@ -350,7 +351,8 @@ in {
extra-passthru = { buildGHC = final.buildPackages.haskell-nix.compiler.ghc8102; };
bootPkgs = bootPkgs // {
ghc = final.buildPackages.buildPackages.haskell-nix.compiler.ghc884;
# Not using 8.8 due to https://gitlab.haskell.org/ghc/ghc/-/issues/18143
ghc = final.buildPackages.buildPackages.haskell-nix.compiler.ghc865;
};
inherit sphinx installDeps;

View File

@ -1,6 +1,8 @@
# haskell-gi packages need gobject-introspection turned on
final: prev: {
harfbuzz = prev.harfbuzz.overrideAttrs (attr: {
# As of nixpkgs 20.09 harfbuzz is built with mesonFlags and hopefully includes
# gobject introspection correctly. Older nixpkgs will have configureFlags to update.
harfbuzz = prev.harfbuzz.overrideAttrs (attr: final.lib.optionalAttrs (attr ? configureFlags) {
configureFlags = attr.configureFlags ++ [ "--enable-introspection=yes" "--with-gobject=yes" ];
buildInputs = attr.buildInputs ++ [ final.pkgs.gobject-introspection ];
});

View File

@ -20,6 +20,8 @@ let
cabalProj = (cabalProject' projectArgs);
stackProj = (stackProject' projectArgs);
exeExt = stdenv.hostPlatform.extensions.executable;
in recurseIntoAttrs ({
run = stdenv.mkDerivation {
name = "coverage-test";
@ -83,7 +85,7 @@ in recurseIntoAttrs ({
dirExistsEmpty "$pkga_basedir/html/pkga-0.1.0.0"
pkgb_basedir="${project.hsPkgs.pkgb.coverageReport}/share/hpc/vanilla"
testTix="$pkgb_basedir/tix/pkgb-0.1.0.0/tests/tests.tix"
testTix="$pkgb_basedir/tix/pkgb-0.1.0.0/tests${exeExt}/tests${exeExt}.tix"
libTix="$pkgb_basedir/tix/pkgb-0.1.0.0/pkgb-0.1.0.0.tix"
fileExistsNonEmpty "$testTix"
fileExistsNonEmpty "$libTix"
@ -110,9 +112,9 @@ in recurseIntoAttrs ({
dirExists "$project_basedir/tix/pkga-0.1.0.0"
dirExists "$project_basedir/tix/pkgb-0.1.0.0"
fileExistsNonEmpty "$project_basedir/tix/pkgb-0.1.0.0/pkgb-0.1.0.0.tix"
dirExists "$project_basedir/tix/pkgb-0.1.0.0/tests"
fileExistsNonEmpty "$project_basedir/tix/pkgb-0.1.0.0/tests/tests.tix"
'') [ cabalProj stackProj ])}
dirExists "$project_basedir/tix/pkgb-0.1.0.0/tests${exeExt}"
fileExistsNonEmpty "$project_basedir/tix/pkgb-0.1.0.0/tests${exeExt}/tests${exeExt}.tix"
'') [ stackProj ])}
touch $out
'';

View File

@ -12,6 +12,8 @@ let
cabalProject = ''
packages: .
allow-newer: cabal-install:base, hackage-security:*
package cabal-install
flags: -native-dns
'';
}).project.hsPkgs.hackage-security.components.library.version;
version-before = version-used-at "2020-04-06T20:54:34Z";