tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
ocamlPackages.biniou: 1.0.9 -> 1.2.0
Vincent Laporte
8 years ago
cbf53070
96874c6e
+59
-30
3 changed files
expand all
collapse all
unified
split
pkgs
development
ocaml-modules
biniou
1.0.nix
default.nix
top-level
ocaml-packages.nix
+36
pkgs/development/ocaml-modules/biniou/1.0.nix
···
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
···
1
+
{stdenv, fetchurl, ocaml, findlib, easy-format}:
2
+
let
3
+
pname = "biniou";
4
+
version = "1.0.9";
5
+
webpage = "http://mjambon.com/${pname}.html";
6
+
in
7
+
8
+
assert stdenv.lib.versionAtLeast (stdenv.lib.getVersion ocaml) "3.11";
9
+
10
+
stdenv.mkDerivation rec {
11
+
12
+
name = "${pname}-${version}";
13
+
14
+
src = fetchurl {
15
+
url = "http://mjambon.com/releases/${pname}/${name}.tar.gz";
16
+
sha256 = "14j3hrhbjqxbizr1pr8fcig9dmfzhbjjwzwyc99fcsdic67w8izb";
17
+
};
18
+
19
+
buildInputs = [ ocaml findlib easy-format ];
20
+
21
+
createFindlibDestdir = true;
22
+
23
+
makeFlags = "PREFIX=$(out)";
24
+
25
+
preBuild = ''
26
+
mkdir $out/bin
27
+
'';
28
+
29
+
meta = with stdenv.lib; {
30
+
description = "A binary data format designed for speed, safety, ease of use and backward compatibility as protocols evolve";
31
+
homepage = "${webpage}";
32
+
license = licenses.bsd3;
33
+
maintainers = [ maintainers.vbgl ];
34
+
platforms = ocaml.meta.platforms or [];
35
+
};
36
+
}
+19
-29
pkgs/development/ocaml-modules/biniou/default.nix
···
1
-
{stdenv, fetchurl, ocaml, findlib, easy-format}:
2
-
let
3
-
pname = "biniou";
4
-
version = "1.0.9";
5
-
webpage = "http://mjambon.com/${pname}.html";
6
-
in
7
-
8
-
assert stdenv.lib.versionAtLeast (stdenv.lib.getVersion ocaml) "3.11";
9
10
stdenv.mkDerivation rec {
11
-
12
-
name = "${pname}-${version}";
13
-
14
-
src = fetchurl {
15
-
url = "http://mjambon.com/releases/${pname}/${name}.tar.gz";
16
-
sha256 = "14j3hrhbjqxbizr1pr8fcig9dmfzhbjjwzwyc99fcsdic67w8izb";
17
-
};
18
-
19
-
buildInputs = [ ocaml findlib easy-format ];
20
21
-
createFindlibDestdir = true;
22
23
-
makeFlags = "PREFIX=$(out)";
24
25
-
preBuild = ''
26
-
mkdir $out/bin
27
-
'';
28
29
-
meta = with stdenv.lib; {
30
-
description = "A binary data format designed for speed, safety, ease of use and backward compatibility as protocols evolve";
31
-
homepage = "${webpage}";
32
-
license = licenses.bsd3;
33
-
maintainers = [ maintainers.vbgl ];
34
-
platforms = ocaml.meta.platforms or [];
35
-
};
36
}
···
1
+
{ stdenv, fetchFromGitHub, ocaml, findlib, jbuilder, easy-format }:
0
0
0
0
0
0
0
2
3
stdenv.mkDerivation rec {
4
+
version = "1.2.0";
5
+
name = "ocaml${ocaml.version}-biniou-${version}";
6
+
src = fetchFromGitHub {
7
+
owner = "mjambon";
8
+
repo = "biniou";
9
+
rev = "v${version}";
10
+
sha256 = "0mjpgwyfq2b2izjw0flmlpvdjgqpq8shs89hxj1np2r50csr8dcb";
11
+
};
0
12
13
+
buildInputs = [ ocaml findlib jbuilder ];
14
15
+
propagatedBuildInputs = [ easy-format ];
16
17
+
inherit (jbuilder) installPhase;
0
0
18
19
+
meta = {
20
+
inherit (src.meta) homepage;
21
+
inherit (ocaml.meta) platforms;
22
+
description = "Binary data format designed for speed, safety, ease of use and backward compatibility as protocols evolve";
23
+
maintainers = [ stdenv.lib.maintainers.vbgl ];
24
+
license = stdenv.lib.licenses.bsd3;
25
+
};
26
}
+4
-1
pkgs/top-level/ocaml-packages.nix
···
114
115
benchmark = callPackage ../development/ocaml-modules/benchmark { };
116
117
-
biniou = callPackage ../development/ocaml-modules/biniou { };
0
0
0
118
119
bin_prot_p4 = callPackage ../development/ocaml-modules/bin_prot { };
120
···
114
115
benchmark = callPackage ../development/ocaml-modules/benchmark { };
116
117
+
biniou =
118
+
if lib.versionOlder "4.02" ocaml.version
119
+
then callPackage ../development/ocaml-modules/biniou { }
120
+
else callPackage ../development/ocaml-modules/biniou/1.0.nix { };
121
122
bin_prot_p4 = callPackage ../development/ocaml-modules/bin_prot { };
123