* ocamlPackages.eigen: 0.2.0 -> 0.3.3 Diff: https://github.com/owlbarn/eigen/compare/0.2.0...0.3.3 Changelog: https://github.com/owlbarn/eigen/releases/tag/0.3.3 * ocamlPackages.eigen: modernized derivation - Removed with lib; - Changed rev to tag and sha256 to hash
37 lines
815 B
Nix
37 lines
815 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
buildDunePackage,
|
|
fetchFromGitHub,
|
|
ctypes,
|
|
dune-configurator,
|
|
}:
|
|
|
|
buildDunePackage rec {
|
|
pname = "eigen";
|
|
version = "0.3.3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "owlbarn";
|
|
repo = pname;
|
|
tag = version;
|
|
hash = "sha256-8V4DQ+b2rzy58NTenK1BsJEJiJKYV6hIp2fJWqczHRY=";
|
|
};
|
|
|
|
minimalOCamlVersion = "4.02";
|
|
|
|
env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.hostPlatform.isDarwin "-I${lib.getInclude stdenv.cc.libcxx}/include/c++/v1";
|
|
|
|
propagatedBuildInputs = [ ctypes ];
|
|
|
|
buildInputs = [ dune-configurator ];
|
|
|
|
meta = {
|
|
inherit (src.meta) homepage;
|
|
description = "Minimal/incomplete Ocaml interface to Eigen3, mostly for Owl";
|
|
platforms = lib.platforms.x86_64;
|
|
maintainers = with lib.maintainers; [ bcdarwin ];
|
|
license = lib.licenses.mit;
|
|
};
|
|
}
|