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
fetchzip,
5
which,
6
ocaml,
0
7
ocamlbuild,
0
8
}:
9
10
-
if lib.versionAtLeast ocaml.version "4.15" then
11
throw "camlp4 is not available for OCaml ${ocaml.version}"
12
else
13
···
66
version = "4.14+1";
67
sha256 = "sha256-cPN3GioZT/Zt6uzbjGUPEGVJcPQdsAnCkU/AQoPfvuo=";
68
};
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
69
}
70
.${ocaml.meta.branch};
71
in
···
81
82
strictDeps = true;
83
84
-
nativeBuildInputs = [
85
-
which
86
-
ocaml
0
0
0
0
0
0
0
0
0
87
ocamlbuild
88
];
89
···
4
fetchzip,
5
which,
6
ocaml,
7
+
camlp-streams,
8
ocamlbuild,
9
+
findlib,
10
}:
11
12
+
if lib.versionAtLeast ocaml.version "5.4" then
13
throw "camlp4 is not available for OCaml ${ocaml.version}"
14
else
15
···
68
version = "4.14+1";
69
sha256 = "sha256-cPN3GioZT/Zt6uzbjGUPEGVJcPQdsAnCkU/AQoPfvuo=";
70
};
71
+
"5.0" = {
72
+
version = "5.0";
73
+
sha256 = "sha256-oZptFNPUEAq5YlcqAoDWfLghGMF9AN7E7hUN55SAX+4=";
74
+
};
75
+
"5.1" = {
76
+
version = "5.1";
77
+
sha256 = "sha256-Ubedjg3BeHA0bJbEalQN9eEk5+LRAI/er+8mWfVYchg=";
78
+
};
79
+
"5.2" = {
80
+
version = "5.2";
81
+
sha256 = "sha256-lzbc9xsgeYlbVf71O+PWYS14QivAH1aPdnvWhe0HHME=";
82
+
};
83
+
"5.3" = {
84
+
version = "5.3";
85
+
sha256 = "sha256-V/kKhTP9U4jWDFuQKuB7BS3XICg1lq/2Avj7UJR55+k=";
86
+
};
87
}
88
.${ocaml.meta.branch};
89
in
···
99
100
strictDeps = true;
101
102
+
nativeBuildInputs =
103
+
[
104
+
which
105
+
ocaml
106
+
ocamlbuild
107
+
]
108
+
++ lib.optionals (lib.versionAtLeast ocaml.version "5.0") [
109
+
findlib
110
+
];
111
+
112
+
buildInputs = lib.optionals (lib.versionAtLeast ocaml.version "5.0") [
113
+
camlp-streams
114
ocamlbuild
115
];
116