587713944a
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
38 lines
756 B
Nix
38 lines
756 B
Nix
{
|
|
lib,
|
|
fetchFromGitHub,
|
|
ocamlPackages,
|
|
}:
|
|
|
|
ocamlPackages.buildDunePackage rec {
|
|
pname = "stanc";
|
|
version = "2.34.0";
|
|
|
|
minimalOCamlVersion = "4.12";
|
|
duneVersion = "3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "stan-dev";
|
|
repo = "stanc3";
|
|
rev = "v${version}";
|
|
hash = "sha256-ixZCix3oLZhzs08JbmbNCO0lhAu1Jf+KnpHNKlU/FaA=";
|
|
};
|
|
|
|
nativeBuildInputs = with ocamlPackages; [ menhir ];
|
|
|
|
buildInputs = with ocamlPackages; [
|
|
core_unix
|
|
menhirLib
|
|
ppx_deriving
|
|
fmt
|
|
yojson
|
|
];
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/stan-dev/stanc3";
|
|
description = "The Stan compiler and utilities";
|
|
license = licenses.bsd3;
|
|
maintainers = with maintainers; [ wegank ];
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|