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