git.iko.soy/typeable/nixpkgs
on master help sign in
ocamlPackages.{owl-base,owl}: init at 0.7.1
commitd016a507ea55be36c2c54b21e8d0bf55eaff3361 authorBen Darwin <bcdarwin@gmail.com> dateTue 26 Nov 2019, 07:18 (7 years ago) parent777efe8
3 files changed+44
pkgs/development/ocaml-modules/owl-base/default.nix+25 pkgs/development/ocaml-modules/owl/default.nix+15 pkgs/top-level/ocaml-packages.nix+4
pkgs/development/ocaml-modules/owl-base/default.nixnew file+25
@@ -0,0 +1,25 @@
1+{ stdenv, buildDunePackage, fetchFromGitHub, integers, stdlib-shims }:
2+
3+buildDunePackage rec {
4+ pname = "owl-base";
5+ version = "0.7.1";
6+
7+ src = fetchFromGitHub {
8+ owner = "owlbarn";
9+ repo = "owl";
10+ rev = version;
11+ sha256 = "1v4jfn3w18zq188f9gskx9ffja3xx59j2mgrw6azp8lsbqixg5xk";
12+ };
13+
14+ propagatedBuildInputs = [ stdlib-shims ];
15+
16+ minimumOCamlVersion = "4.06";
17+
18+ meta = with stdenv.lib; {
19+ description = "Numerical computing library for Ocaml";
20+ homepage = "https://ocaml.xyz";
21+ platforms = platforms.x86_64;
22+ maintainers = [ maintainers.bcdarwin ];
23+ license = licenses.mit;
24+ };
25+}
pkgs/development/ocaml-modules/owl/default.nixnew file+15
@@ -0,0 +1,15 @@
1+{ stdenv, buildDunePackage, fetchFromGitHub, alcotest
2+, eigen, stdio, stdlib-shims, openblasCompat, owl-base
3+}:
4+
5+buildDunePackage rec {
6+ pname = "owl";
7+
8+ inherit (owl-base) version src meta;
9+
10+ buildInputs = [ eigen ];
11+ checkInputs = [ alcotest ];
12+ propagatedBuildInputs = [ stdio stdlib-shims openblasCompat owl-base ];
13+
14+ # tests not enabled for now due to owlbarn/owl/issues/460
15+}
pkgs/top-level/ocaml-packages.nix+4
@@ -605,6 +605,10 @@ let
605605
606606 owee = callPackage ../development/ocaml-modules/owee { };
607607
608+ owl-base = callPackage ../development/ocaml-modules/owl-base { };
609+
610+ owl = callPackage ../development/ocaml-modules/owl { };
611+
608612 ounit = callPackage ../development/ocaml-modules/ounit { };
609613
610614 pgsolver = callPackage ../development/ocaml-modules/pgsolver { };