Skip to content

Commit 56e3976

Browse files
authored
ocamlPackages.posix-math2: init at 2.2.0 (#385383)
2 parents 3f22849 + a7e1ef2 commit 56e3976

File tree

6 files changed

+23
-8
lines changed

6 files changed

+23
-8
lines changed

pkgs/development/ocaml-modules/posix/base.nix

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,10 @@ buildDunePackage rec {
1313
src = fetchFromGitHub {
1414
owner = "savonet";
1515
repo = "ocaml-posix";
16-
rev = "v${version}";
16+
tag = "v${version}";
1717
hash = "sha256-JKJIiuo4lW8DmcK1mJlT22784J1NS2ig860jDbRIjIo=";
1818
};
1919

20-
duneVersion = "3";
2120
minimalOCamlVersion = "4.08";
2221

2322
propagatedBuildInputs = [
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
buildDunePackage,
3+
posix-base,
4+
unix-errno,
5+
}:
6+
7+
buildDunePackage {
8+
pname = "posix-math2";
9+
inherit (posix-base) src version;
10+
11+
propagatedBuildInputs = [
12+
posix-base
13+
unix-errno
14+
];
15+
16+
meta = posix-base.meta // {
17+
description = "Bindings for posix math";
18+
};
19+
}

pkgs/development/ocaml-modules/posix/socket.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ buildDunePackage {
55

66
inherit (posix-base) version src;
77

8-
duneVersion = "3";
8+
minimalOCamlVersion = "4.12";
99

1010
propagatedBuildInputs = [ posix-base ];
1111

pkgs/development/ocaml-modules/posix/time2.nix

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ buildDunePackage {
1111

1212
inherit (posix-base) version src;
1313

14-
duneVersion = "3";
15-
1614
propagatedBuildInputs = [
1715
posix-base
1816
posix-types

pkgs/development/ocaml-modules/posix/types.nix

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@ buildDunePackage {
55

66
inherit (posix-base) version src;
77

8-
minimalOCamlVersion = "4.03";
9-
duneVersion = "3";
10-
118
propagatedBuildInputs = [ posix-base ];
129

1310
meta = posix-base.meta // {

pkgs/top-level/ocaml-packages.nix

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1570,6 +1570,8 @@ let
15701570

15711571
posix-base = callPackage ../development/ocaml-modules/posix/base.nix { };
15721572

1573+
posix-math2 = callPackage ../development/ocaml-modules/posix/math2.nix { };
1574+
15731575
posix-socket = callPackage ../development/ocaml-modules/posix/socket.nix { };
15741576

15751577
posix-time2 = callPackage ../development/ocaml-modules/posix/time2.nix { };

0 commit comments

Comments
 (0)