Change:
Package name: gmsh Latest released version: 4.12.2 Current version on the unstable channel: 4.11.1 Current version on the stable/release channel: 4.11.1 Notify maintainers This package has no maintainers. Note for maintainers: Please tag this issue in your PR. Add a :+1: [reaction] to [issues you find important]. [reaction]: [issues you find important]:

Discussion:
<del> { lib, stdenv, fetchurl, fetchpatch, cmake, blas, lapack, gfortran, gmm, fltk, libjpeg </del> <ins> { lib, stdenv, fetchurl, cmake, blas, lapack, gfortran, gmm, fltk, libjpeg </ins> , zlib, libGL, libGLU, xorg, opencascade-occt , python ? null, enablePython ? false }:

stdenv.mkDerivation rec { pname = "gmsh"; <del> version = "4.11.1"; </del> <ins> version = "4.12.2"; </ins> src = fetchurl { url = "https://gmsh.info/src/gmsh-${version}-source.tgz"; <del> sha256 = "sha256-xf4bfL1AOIioFJKfL9D11p4nYAIioYx4bbW3boAFs2U="; </del> <ins> hash = "sha256-E+CdnKgQLlxAFx1u4VDGaHQrmMOmylf4N/e2Th4q9I8="; </ins> }; buildInputs = [

patches = [ ./fix-python.patch <del> # Pull upstream fix git gcc-13: #   https://gitlab.onelab.info/gmsh/gmsh/-/issues/2416 (fetchpatch { name = "gcc-13-p1.patch"; url = "https://gitlab.onelab.info/gmsh/gmsh/-/commit/fb81a9c9026700e078de947b4522cb39e543a86b.patch"; hash = "sha256-1GInFqQZvOgflC3eQTjmZ9uBGFASRNCpCwDACN3yTQ4="; }) (fetchpatch { name = "gcc-13-p2.patch"; url = "https://gitlab.onelab.info/gmsh/gmsh/-/commit/aceb09c807b78ea26555f99fcb16c4f87c31fb5a.patch"; hash = "sha256-6FI0hIvj8hglCvxoKV0GzT2/F/Wz+ddkxV/TLzzJBLU="; }) </del> ]; postPatch = ''

diff --git a/api/gmsh.py b/api/gmsh.py <del> index 747acb203..02004da5d 100644 </del> <ins> index f525284..a225c85 100644 </ins> --- a/api/gmsh.py +++ b/api/gmsh.py <del> @@ -44,44 +44,7 @@ moduledir = os.path.dirname(os.path.realpath(__file__)) parentdir1 = os.path.dirname(moduledir) parentdir2 = os.path.dirname(parentdir1) </del> <ins> @@ -78,6 +78,8 @@ if not libpath: else: libpath = find_library("gmsh") </ins> <del> -if platform.system() == "Windows": -    libname = "gmsh-4.11.dll" -elif platform.system() == "Darwin": -    libname = "libgmsh.4.11.dylib" -else: -    libname = "libgmsh.so.4.11" - -# check if the library is in the same directory as the module... -libpath = os.path.join(moduledir, libname) - -# ... or in the parent directory or its lib or Lib subdirectory -if not os.path.exists(libpath): -    libpath = os.path.join(parentdir1, libname) -if not os.path.exists(libpath): -    libpath = os.path.join(parentdir1, "lib", libname) -if not os.path.exists(libpath): -    libpath = os.path.join(parentdir1, "Lib", libname) - -# ... or in the parent of the parent directory or its lib or Lib subdirectory -if not os.path.exists(libpath): -    libpath = os.path.join(parentdir2, libname) -if not os.path.exists(libpath): -    libpath = os.path.join(parentdir2, "lib", libname) -if not os.path.exists(libpath): -    libpath = os.path.join(parentdir2, "Lib", libname) - -# if we couldn't find it, use ctype's find_library utility... -if not os.path.exists(libpath): -    if platform.system() == "Windows": -        libpath = find_library("gmsh-4.11") -        if not libpath: -            libpath = find_library("gmsh") -    else: -        libpath = find_library("gmsh") - -# ... and print a warning if everything failed -if not os.path.exists(libpath): -    print("Warning: could not find Gmsh shared library " + libname) </del> +libpath = "@LIBPATH@" <del> lib = CDLL(libpath) </del> <ins> + # ... and print a warning if everything failed if not libpath: print("Warning: could not find Gmsh shared library " + libname + </ins>