stanc: 2.38.0 -> 2.39.0 (#521990)

This commit is contained in:
Weijia Wang
2026-06-04 14:43:03 +00:00
committed by GitHub
3 changed files with 15 additions and 5 deletions

View File

@@ -12,19 +12,19 @@
stdenv.mkDerivation (finalAttrs: {
pname = "cmdstan";
version = "2.38.0";
version = "2.39.0";
src = fetchFromGitHub {
owner = "stan-dev";
repo = "cmdstan";
tag = "v${finalAttrs.version}";
fetchSubmodules = true;
hash = "sha256-4Mx4LvXW2lYOSSOgNT0f+unry6mBobgGTDLwtiypHBU=";
hash = "sha256-7vGEqIJOFWeESq4xL2z2ZjNaVWEqqzPmGT6tpWBzrU0=";
};
postPatch = ''
substituteInPlace stan/lib/stan_math/make/libraries \
--replace "/usr/bin/env bash" "bash"
--replace-fail "/usr/bin/env bash" "bash"
'';
nativeBuildInputs = [

View File

@@ -6,7 +6,7 @@
ocamlPackages.buildDunePackage rec {
pname = "stanc";
version = "2.38.0";
version = "2.39.0";
minimalOCamlVersion = "4.12";
@@ -14,7 +14,7 @@ ocamlPackages.buildDunePackage rec {
owner = "stan-dev";
repo = "stanc3";
tag = "v${version}";
hash = "sha256-j05PMQKIqkM9UWJzSVnkYWe6d+iUnmFOh1W8pZ7Fdyk=";
hash = "sha256-ZAH9uFEZu75BC2xYGUXg62RHiADmKYBYP2Nt8bwEVRY=";
};
nativeBuildInputs = with ocamlPackages; [

View File

@@ -2,6 +2,7 @@
lib,
buildPythonPackage,
fetchFromGitHub,
fetchpatch,
replaceVars,
cmdstan,
setuptools,
@@ -30,6 +31,15 @@ buildPythonPackage (finalAttrs: {
(replaceVars ./use-nix-cmdstan-path.patch {
cmdstan = "${cmdstan}/opt/cmdstan";
})
# Fix tests for cmdstan 2.39.0
(fetchpatch {
url = "https://github.com/stan-dev/cmdstanpy/commit/5ef72db67660b8fb0ea0ba25bef9667e88aafc5f.patch";
hash = "sha256-BZcJiRAluItsfzvGJ2yJVDHuUp92AI19x7d06wRGzY4=";
})
(fetchpatch {
url = "https://github.com/stan-dev/cmdstanpy/commit/f08c69835d2d4a69c7e526d939757b8f609da8f6.patch";
hash = "sha256-3o8d5h0eRkghav2vuG6eERf6u6GJSKEaqmnGhfBXbjk=";
})
];
postPatch = ''