1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5 cmake,
6 fparser,
7 tinyxml,
8 hdf5,
9 cgal,
10 vtk,
11 boost,
12 gmp,
13 mpfr,
14}:
15
16stdenv.mkDerivation rec {
17 pname = "csxcad";
18 version = "0.6.3";
19
20 src = fetchFromGitHub {
21 owner = "thliebig";
22 repo = "CSXCAD";
23 rev = "v${version}";
24 sha256 = "sha256-SSV5ulx3rCJg99I/oOQbqe+gOSs+BfcCo6UkWHVhnSs=";
25 };
26
27 patches = [ ./searchPath.patch ];
28
29 buildInputs = [
30 cgal
31 boost
32 gmp
33 mpfr
34 vtk
35 fparser
36 tinyxml
37 hdf5
38 ];
39
40 nativeBuildInputs = [ cmake ];
41
42 meta = with lib; {
43 description = "C++ library to describe geometrical objects";
44 homepage = "https://github.com/thliebig/CSXCAD";
45 license = licenses.lgpl3;
46 maintainers = with maintainers; [ matthuszagh ];
47 platforms = platforms.linux;
48 };
49}