12 stdenv.mkDerivation (finalAttrs: {
16 src = fetchFromGitHub {
19 rev = finalAttrs.version;
20 hash = "sha256-pD2MGsIQgMO4798Gp9oLprKhmV0lcjgtUHh1rvEjSIY=";
24 # update use of distutils
25 # This PR was merged upstream, so the patch can be removed on next release
27 name = "python312-support.patch";
28 url = "https://github.com/felixlen/trlib/pull/26/commits/6b72f3b2afebee4ae179bc760f93b16c60fd72d8.patch";
29 hash = "sha256-+6iiALFhMSiE44kpkDrhwrYt4miHlPkiffRZAgsM1Jo=";
33 nativeBuildInputs = [ cmake ];
36 ++ lib.optionals pythonSupport [
37 python3Packages.cython
41 cmakeFlags = [ (lib.cmakeBool "TRLIB_BUILD_PYTHON3" pythonSupport) ];
44 description = "Trust Region Subproblem Solver Library";
45 homepage = "https://github.com/felixlen/trlib";
46 license = lib.licenses.mit;
47 maintainers = with lib.maintainers; [ nim65s ];