smesh: fix building with clang

so the darwin build has a chance of succeeding again
This commit is contained in:
Arnout Engelen 2020-12-11 09:52:14 +01:00
parent e9158eca70
commit ce9c9f0fe0
No known key found for this signature in database
GPG Key ID: 061107B0F74A6DAA

View File

@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, cmake, ninja, opencascade }:
{ stdenv, fetchFromGitHub, fetchpatch, cmake, ninja, opencascade }:
stdenv.mkDerivation rec {
pname = "smesh";
@ -11,6 +11,14 @@ stdenv.mkDerivation rec {
sha256 = "1b07j3bw3lnxk8dk3x1kkl2mbsmfwi98si84054038lflaaijzi0";
};
patches = [
(fetchpatch {
name = "fix-build-with-clang.patch";
url = "https://github.com/tpaviot/smesh/commit/e32c430f526f1637ec5973c9723acbc5be571ae3.patch";
sha256 = "0s4j5rb70g3jvvkgfbrxv7q52wk6yjyjiaya61gy2j64khplcjlb";
})
];
nativeBuildInputs = [ cmake ninja ];
buildInputs = [ opencascade ];