haskell.nix/materialized/ghc-extra-projects/cross/ghc865/.plan.nix/iserv.nix
Hamish Mackenzie 79b5458138
Update materialized nix files (#603)
Update materialized with new errorHandler
2020-05-13 22:08:36 +12:00

54 lines
2.2 KiB
Nix

{ system
, compiler
, flags
, pkgs
, hsPkgs
, pkgconfPkgs
, errorHandler
, config
, ... }:
{
flags = {};
package = {
specVersion = "1.10";
identifier = { name = "iserv"; version = "8.6.5"; };
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\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; }