stanc: init at 2.31.0

This commit is contained in:
Weijia Wang
2023-01-08 23:52:23 +01:00
parent 85be954926
commit 7ea4e36ad7
2 changed files with 43 additions and 0 deletions
@@ -0,0 +1,41 @@
{ lib
, fetchFromGitHub
, ocamlPackages
}:
ocamlPackages.buildDunePackage rec {
pname = "stanc";
version = "2.31.0";
minimalOCamlVersion = "4.12";
src = fetchFromGitHub {
owner = "stan-dev";
repo = "stanc3";
rev = "v${version}";
hash = "sha256-5GOyKVt3LHN1D6UysOZT8isVQLKexwEcK0rwI45dDcg=";
};
# Error: This expression has type [ `Use_Sys_unix ]
postPatch = ''
substituteInPlace test/integration/run_bin_on_args.ml \
--replace "if Sys.file_exists (to_windows path) then to_windows cmd else cmd" "cmd"
'';
buildInputs = with ocamlPackages; [
core_unix
menhir
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;
};
}
+2
View File
@@ -15666,6 +15666,8 @@ with pkgs;
stalin = callPackage ../development/compilers/stalin { };
stanc = callPackage ../development/compilers/stanc { };
metaBuildEnv = callPackage ../development/compilers/meta-environment/meta-build-env { };
svd2rust = callPackage ../development/tools/rust/svd2rust { };