forked from haskell/haskell-ide-engine
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ghc-mod-core.nix
91 lines (85 loc) · 5.29 KB
/
ghc-mod-core.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
let
buildDepError = pkg:
builtins.throw ''
The Haskell package set does not contain the package: ${pkg} (build dependency).
If you are using Stackage, make sure that you are using a snapshot that contains the package. Otherwise you may need to update the Hackage snapshot you are using, usually by updating haskell.nix.
'';
sysDepError = pkg:
builtins.throw ''
The Nixpkgs package set does not contain the package: ${pkg} (system dependency).
You may need to augment the system package mapping in haskell.nix so that it can be found.
'';
pkgConfDepError = pkg:
builtins.throw ''
The pkg-conf packages does not contain the package: ${pkg} (pkg-conf dependency).
You may need to augment the pkg-conf package mapping in haskell.nix so that it can be found.
'';
exeDepError = pkg:
builtins.throw ''
The local executable components do not include the component: ${pkg} (executable dependency).
'';
legacyExeDepError = pkg:
builtins.throw ''
The Haskell package set does not contain the package: ${pkg} (executable dependency).
If you are using Stackage, make sure that you are using a snapshot that contains the package. Otherwise you may need to update the Hackage snapshot you are using, usually by updating haskell.nix.
'';
buildToolDepError = pkg:
builtins.throw ''
Neither the Haskell package set or the Nixpkgs package set contain the package: ${pkg} (build tool dependency).
If this is a system dependency:
You may need to augment the system package mapping in haskell.nix so that it can be found.
If this is a Haskell dependency:
If you are using Stackage, make sure that you are using a snapshot that contains the package. Otherwise you may need to update the Hackage snapshot you are using, usually by updating haskell.nix.
'';
in { system, compiler, flags, pkgs, hsPkgs, pkgconfPkgs, ... }:
{
flags = {};
package = {
specVersion = "1.24";
identifier = { name = "ghc-mod-core"; version = "5.9.0.0"; };
license = "AGPL-3.0-only";
copyright = "";
maintainer = "Daniel Gröber <dxld@darkboxed.org>";
author = "Kazu Yamamoto <kazu@iij.ad.jp>,\nDaniel Gröber <dxld@darkboxed.org>,\nAlejandro Serrano <trupill@gmail.com>,\nNikolay Yakimov <root@livid.pp.ru>";
homepage = "https://github.com/DanielG/ghc-mod";
url = "";
synopsis = "Happy Haskell Hacking";
description = "ghc-mod is a backend program to enrich Haskell programming in editors. It\nstrives to offer most of the features one has come to expect from modern IDEs\nin any editor.\nghc-mod provides a library for other haskell programs to use as well as a\nstandalone program for easy editor integration. All of the fundamental\nfunctionality of the frontend program can be accessed through the library\nhowever many implementation details are hidden and if you want to\nsignificantly extend ghc-mod you should submit these changes upstream instead\nof implementing them on top of the library.";
buildType = "Simple";
isLocal = true;
};
components = {
"library" = {
depends = (([
(hsPkgs."binary" or (buildDepError "binary"))
(hsPkgs."bytestring" or (buildDepError "bytestring"))
(hsPkgs."containers" or (buildDepError "containers"))
(hsPkgs."deepseq" or (buildDepError "deepseq"))
(hsPkgs."directory" or (buildDepError "directory"))
(hsPkgs."ghc-project-types" or (buildDepError "ghc-project-types"))
(hsPkgs."filepath" or (buildDepError "filepath"))
(hsPkgs."mtl" or (buildDepError "mtl"))
(hsPkgs."process" or (buildDepError "process"))
(hsPkgs."template-haskell" or (buildDepError "template-haskell"))
(hsPkgs."time" or (buildDepError "time"))
(hsPkgs."transformers" or (buildDepError "transformers"))
(hsPkgs."base" or (buildDepError "base"))
(hsPkgs."extra" or (buildDepError "extra"))
(hsPkgs."fclabels" or (buildDepError "fclabels"))
(hsPkgs."ghc-paths" or (buildDepError "ghc-paths"))
(hsPkgs."monad-control" or (buildDepError "monad-control"))
(hsPkgs."monad-journal" or (buildDepError "monad-journal"))
(hsPkgs."optparse-applicative" or (buildDepError "optparse-applicative"))
(hsPkgs."pipes" or (buildDepError "pipes"))
(hsPkgs."safe" or (buildDepError "safe"))
(hsPkgs."split" or (buildDepError "split"))
(hsPkgs."syb" or (buildDepError "syb"))
(hsPkgs."temporary" or (buildDepError "temporary"))
(hsPkgs."transformers-base" or (buildDepError "transformers-base"))
(hsPkgs."cabal-helper" or (buildDepError "cabal-helper"))
(hsPkgs."ghc" or (buildDepError "ghc"))
] ++ (pkgs.lib).optional (compiler.isGhc && (compiler.version).ge "8.0") (hsPkgs."ghc-boot" or (buildDepError "ghc-boot"))) ++ (pkgs.lib).optional (compiler.isGhc && (compiler.version).lt "7.8") (hsPkgs."convertible" or (buildDepError "convertible"))) ++ (pkgs.lib).optional (compiler.isGhc && (compiler.version).lt "8.4") (hsPkgs."ghc-syb-utils" or (buildDepError "ghc-syb-utils"));
buildable = true;
};
};
} // rec { src = (pkgs.lib).mkDefault ./submodules/ghc-mod/core; }