nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 58 lines 1.2 kB view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 fetchpatch, 6 cmake, 7 fparser, 8 tinyxml, 9 hdf5, 10 cgal, 11 vtk, 12 boost, 13 gmp, 14 mpfr, 15}: 16 17stdenv.mkDerivation (finalAttrs: { 18 pname = "csxcad"; 19 version = "0.6.3"; 20 21 src = fetchFromGitHub { 22 owner = "thliebig"; 23 repo = "CSXCAD"; 24 rev = "v${finalAttrs.version}"; 25 sha256 = "sha256-SSV5ulx3rCJg99I/oOQbqe+gOSs+BfcCo6UkWHVhnSs="; 26 }; 27 28 patches = [ 29 ./searchPath.patch 30 # ref. https://github.com/thliebig/CSXCAD/pull/62 merged upstream 31 (fetchpatch { 32 name = "update-cmake-minimum-required.patch"; 33 url = "https://github.com/thliebig/CSXCAD/commit/b8ea64e11320910109a49b6da5352e1a1a18a736.patch"; 34 hash = "sha256-mpQmpvrEDjOKgEAZ5laIIepG+PWqSr637tOY7FQst2s="; 35 }) 36 ]; 37 38 buildInputs = [ 39 cgal 40 boost 41 gmp 42 mpfr 43 vtk 44 fparser 45 tinyxml 46 hdf5 47 ]; 48 49 nativeBuildInputs = [ cmake ]; 50 51 meta = { 52 description = "C++ library to describe geometrical objects"; 53 homepage = "https://github.com/thliebig/CSXCAD"; 54 license = lib.licenses.lgpl3; 55 maintainers = with lib.maintainers; [ matthuszagh ]; 56 platforms = lib.platforms.linux; 57 }; 58})