Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

netgen-mesher: init at version 6.2.2004 #73932

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
36 changes: 36 additions & 0 deletions pkgs/applications/science/geometry/netgen-mesher/default.nix
@@ -0,0 +1,36 @@
{ stdenv, opencascade, fetchFromGitHub, cmake, python3, tcl, tk, libjpeg, zlib, mesa, libGLU, xorg, ffmpeg }:

stdenv.mkDerivation rec {
pname = "netgen-mesher";

version = "6.2.2004";

src = fetchFromGitHub {
owner = "NGSolve";
repo = "netgen";
rev = "v${version}";
# pybind11 is a submodule
fetchSubmodules = true;
sha256 = "05s982z1s3rny20cafwbrr7n1z0ql7czq97zs75hgqwrbldfij5y";
};

enableParallelBuilding = true;
Comment on lines +16 to +17
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
enableParallelBuilding = true;

cmake implies that.


nativeBuildInputs = [ cmake ];

buildInputs = [ python3 tcl tk libjpeg ffmpeg zlib mesa libGLU xorg.libXmu opencascade ];
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is python only a build time depedency?


cmakeFlags = [
"-DUSE_JPEG=ON"
"-DUSE_MPEG=ON"
"-DUSE_OCC=ON"
"-DOCC_INCLUDE_DIR=${opencascade}/include/oce"
];

meta = {
description = "An automatic 3d tetrahedral mesh generator";
homepage = "https://sourceforge.net/projects/netgen-mesher/";
license = stdenv.lib.licenses.lgpl21;
platforms = stdenv.lib.platforms.linux;
};
Comment on lines +30 to +35
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
meta = {
description = "An automatic 3d tetrahedral mesh generator";
homepage = "https://sourceforge.net/projects/netgen-mesher/";
license = stdenv.lib.licenses.lgpl21;
platforms = stdenv.lib.platforms.linux;
};
meta = with lib; {
description = "An automatic 3d tetrahedral mesh generator";
homepage = "https://sourceforge.net/projects/netgen-mesher/";
license = licenses.lgpl21;
platforms = platforms.linux;
Please add yourself as a maintainer.
};

lgpl21Plus or lgpl21Only?

}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Expand Up @@ -24240,6 +24240,8 @@ in
tetgen = callPackage ../applications/science/geometry/tetgen { }; # AGPL3+
tetgen_1_4 = callPackage ../applications/science/geometry/tetgen/1.4.nix { }; # MIT

netgen-mesher = callPackage ../applications/science/geometry/netgen-mesher { };

### SCIENCE/BENCHMARK

papi = callPackage ../development/libraries/science/benchmark/papi { };
Expand Down