python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / development / libraries / smesh / default.nix
blob0181977873a98298830bc3a06f9ac4cb011e1f50
1 { lib, stdenv, fetchFromGitHub, fetchpatch, cmake, ninja, opencascade
2 , Cocoa }:
4 stdenv.mkDerivation rec {
5   pname = "smesh";
6   version = "6.7.6";
8   src = fetchFromGitHub {
9     owner = "tpaviot";
10     repo = "smesh";
11     rev = version;
12     sha256 = "1b07j3bw3lnxk8dk3x1kkl2mbsmfwi98si84054038lflaaijzi0";
13   };
15   patches = [
16     (fetchpatch {
17       name = "fix-build-with-clang.patch";
18       url = "https://github.com/tpaviot/smesh/commit/e32c430f526f1637ec5973c9723acbc5be571ae3.patch";
19       sha256 = "0s4j5rb70g3jvvkgfbrxv7q52wk6yjyjiaya61gy2j64khplcjlb";
20     })
21   ];
23   nativeBuildInputs = [ cmake ninja ];
24   buildInputs = [ opencascade ] ++ lib.optionals stdenv.isDarwin [ Cocoa ];
26   NIX_CFLAGS_COMPILE = [ "-std=c++11" ];
28   meta = with lib; {
29     description = "Extension to OCE providing advanced meshing features";
30     homepage = "https://github.com/tpaviot/smesh";
31     license = licenses.lgpl21;
32     platforms = platforms.unix;
33     maintainers = with maintainers; [ gebner ];
34   };