tangled
alpha
login
or
join now
tjh.dev
/
nixpkgs
0
fork
atom
nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
0
fork
atom
overview
issues
pulls
pipelines
ocamlPackages.ctypes: 0.20.1 → 0.20.2
Vincent Laporte
3 years ago
c6049e94
28031f75
+10
-2
1 changed file
expand all
collapse all
unified
split
pkgs
development
ocaml-modules
ctypes
default.nix
+10
-2
pkgs/development/ocaml-modules/ctypes/default.nix
reviewed
···
6
6
7
7
stdenv.mkDerivation rec {
8
8
pname = "ocaml${ocaml.version}-ctypes";
9
9
-
version = "0.20.1";
9
9
+
version = "0.20.2";
10
10
11
11
src = fetchFromGitHub {
12
12
owner = "ocamllabs";
13
13
repo = "ocaml-ctypes";
14
14
rev = version;
15
15
-
sha256 = "sha256-H1QR0MJCqRdXxRufCA663wzTNWQ8MYYAy2nz/XHCn0Y=";
15
15
+
hash = "sha256-LzUrR8K88CjY/R5yUK3y6KG85hUMjbzuebHGqI8KhhM=";
16
16
};
17
17
18
18
nativeBuildInputs = [ pkg-config ocaml findlib ];
···
21
21
22
22
strictDeps = true;
23
23
24
24
+
preConfigure = ''
25
25
+
substituteInPlace META --replace ' bytes ' ' '
26
26
+
'';
27
27
+
24
28
buildPhase = ''
29
29
+
runHook preBuild
25
30
make XEN=false libffi.config ctypes-base ctypes-stubs
26
31
make XEN=false ctypes-foreign
32
32
+
runHook postBuild
27
33
'';
28
34
29
35
installPhase = ''
36
36
+
runHook preInstall
30
37
mkdir -p $out/lib/ocaml/${ocaml.version}/site-lib/stublibs
31
38
make install XEN=false
39
39
+
runHook postInstall
32
40
'';
33
41
34
42
meta = with lib; {