tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
ocamlPackages.camlp4: fix build
Weijia Wang
1 year ago
c9486e98
53ae2f05
+31
-4
1 changed file
expand all
collapse all
unified
split
pkgs
development
tools
ocaml
camlp4
default.nix
+31
-4
pkgs/development/tools/ocaml/camlp4/default.nix
···
4
4
fetchzip,
5
5
which,
6
6
ocaml,
7
7
+
camlp-streams,
7
8
ocamlbuild,
9
9
+
findlib,
8
10
}:
9
11
10
10
-
if lib.versionAtLeast ocaml.version "4.15" then
12
12
+
if lib.versionAtLeast ocaml.version "5.4" then
11
13
throw "camlp4 is not available for OCaml ${ocaml.version}"
12
14
else
13
15
···
66
68
version = "4.14+1";
67
69
sha256 = "sha256-cPN3GioZT/Zt6uzbjGUPEGVJcPQdsAnCkU/AQoPfvuo=";
68
70
};
71
71
+
"5.0" = {
72
72
+
version = "5.0";
73
73
+
sha256 = "sha256-oZptFNPUEAq5YlcqAoDWfLghGMF9AN7E7hUN55SAX+4=";
74
74
+
};
75
75
+
"5.1" = {
76
76
+
version = "5.1";
77
77
+
sha256 = "sha256-Ubedjg3BeHA0bJbEalQN9eEk5+LRAI/er+8mWfVYchg=";
78
78
+
};
79
79
+
"5.2" = {
80
80
+
version = "5.2";
81
81
+
sha256 = "sha256-lzbc9xsgeYlbVf71O+PWYS14QivAH1aPdnvWhe0HHME=";
82
82
+
};
83
83
+
"5.3" = {
84
84
+
version = "5.3";
85
85
+
sha256 = "sha256-V/kKhTP9U4jWDFuQKuB7BS3XICg1lq/2Avj7UJR55+k=";
86
86
+
};
69
87
}
70
88
.${ocaml.meta.branch};
71
89
in
···
81
99
82
100
strictDeps = true;
83
101
84
84
-
nativeBuildInputs = [
85
85
-
which
86
86
-
ocaml
102
102
+
nativeBuildInputs =
103
103
+
[
104
104
+
which
105
105
+
ocaml
106
106
+
ocamlbuild
107
107
+
]
108
108
+
++ lib.optionals (lib.versionAtLeast ocaml.version "5.0") [
109
109
+
findlib
110
110
+
];
111
111
+
112
112
+
buildInputs = lib.optionals (lib.versionAtLeast ocaml.version "5.0") [
113
113
+
camlp-streams
87
114
ocamlbuild
88
115
];
89
116