on e94de40 help sign in
haskell.nix/test/builder-haddock/test-haddock.nix
65 lines 2.6 kB history raw
1let
2 buildDepError = pkg:
3 builtins.throw ''
4 The Haskell package set does not contain the package: ${pkg} (build dependency).
6 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.
7 '';
8 sysDepError = pkg:
9 builtins.throw ''
10 The Nixpkgs package set does not contain the package: ${pkg} (system dependency).
12 You may need to augment the system package mapping in haskell.nix so that it can be found.
13 '';
14 pkgConfDepError = pkg:
15 builtins.throw ''
16 The pkg-conf packages does not contain the package: ${pkg} (pkg-conf dependency).
18 You may need to augment the pkg-conf package mapping in haskell.nix so that it can be found.
19 '';
20 exeDepError = pkg:
21 builtins.throw ''
22 The local executable components do not include the component: ${pkg} (executable dependency).
23 '';
24 legacyExeDepError = pkg:
25 builtins.throw ''
26 The Haskell package set does not contain the package: ${pkg} (executable dependency).
28 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.
29 '';
30 buildToolDepError = pkg:
31 builtins.throw ''
32 Neither the Haskell package set or the Nixpkgs package set contain the package: ${pkg} (build tool dependency).
34 If this is a system dependency:
35 You may need to augment the system package mapping in haskell.nix so that it can be found.
37 If this is a Haskell dependency:
38 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.
39 '';
40in { system, compiler, flags, pkgs, hsPkgs, pkgconfPkgs, ... }:
41 {
42 flags = {};
43 package = {
44 specVersion = "2.2";
45 identifier = { name = "test-haddock"; version = "0.1.0.0"; };
46 license = "NONE";
47 copyright = "";
48 maintainer = "rodney.lorrimar@iohk.io";
49 author = "Rodney Lorrimar";
50 homepage = "";
51 url = "";
52 synopsis = "";
53 description = "";
54 buildType = "Simple";
55 };
56 components = {
57 "library" = {
58 depends = [
59 (hsPkgs."base" or (buildDepError "base"))
60 (hsPkgs."stm" or (buildDepError "stm"))
61 ];
62 buildable = true;
63 };
64 };
65 } // rec { src = (pkgs.lib).mkDefault ./.; }