2021-01-21 17:00:13 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, fetchpatch, cmake, ninja, opencascade
|
2020-12-28 15:43:38 +00:00
|
|
|
, Cocoa }:
|
2019-05-01 10:56:41 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "smesh";
|
|
|
|
version = "6.7.6";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "tpaviot";
|
|
|
|
repo = "smesh";
|
|
|
|
rev = version;
|
|
|
|
sha256 = "1b07j3bw3lnxk8dk3x1kkl2mbsmfwi98si84054038lflaaijzi0";
|
|
|
|
};
|
|
|
|
|
2020-12-11 08:52:14 +00:00
|
|
|
patches = [
|
|
|
|
(fetchpatch {
|
|
|
|
name = "fix-build-with-clang.patch";
|
|
|
|
url = "https://github.com/tpaviot/smesh/commit/e32c430f526f1637ec5973c9723acbc5be571ae3.patch";
|
|
|
|
sha256 = "0s4j5rb70g3jvvkgfbrxv7q52wk6yjyjiaya61gy2j64khplcjlb";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2019-05-01 10:56:41 +00:00
|
|
|
nativeBuildInputs = [ cmake ninja ];
|
2021-01-21 17:00:13 +00:00
|
|
|
buildInputs = [ opencascade ] ++ lib.optionals stdenv.isDarwin [ Cocoa ];
|
2019-05-01 10:56:41 +00:00
|
|
|
|
2022-04-17 07:56:20 +00:00
|
|
|
NIX_CFLAGS_COMPILE = [ "-std=c++11" ];
|
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2019-05-01 10:56:41 +00:00
|
|
|
description = "Extension to OCE providing advanced meshing features";
|
|
|
|
homepage = "https://github.com/tpaviot/smesh";
|
|
|
|
license = licenses.lgpl21;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = with maintainers; [ gebner ];
|
|
|
|
};
|
|
|
|
}
|