Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.6 kB · 89 lines
Nix
at gcc-offload
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990{ lib, stdenv, python, buildPythonPackage, fetchFromGitHub, setuptools, boost, cgal, cmake, gmp, tbb, LAStools, eigen, mpfr, numpy, swig, zlib, withLAS ? false, # unfree}:
buildPythonPackage rec { pname = "cgal"; version = "6.0.1.post202410241521"; pyproject = true;
src = fetchFromGitHub { owner = "CGAL"; repo = "cgal-swig-bindings"; rev = "refs/tags/v${version}"; hash = "sha256-MnUsl4ozMamKcQ13TV6mtoG7VKq8BuiDSIVq1RPn2rs="; };
dontUseCmakeConfigure = true;
build-system = [ setuptools cmake swig ];
buildInputs = [ cgal gmp mpfr boost zlib tbb eigen ] ++ lib.optionals withLAS [ LAStools ];
dependencies = [ numpy ];
pythonImportsCheck = [ "CGAL" ];
postFixup = lib.optionalString stdenv.hostPlatform.isElf '' mv $out/${python.sitePackages}/{lib,CGAL/_lib} for file in $out/${python.sitePackages}/CGAL/_*.so; do patchelf "$file" --add-rpath $out/${python.sitePackages}/CGAL/_lib done '';
checkPhase = '' runHook preCheck (cd examples/python/ bash ./test.sh cat error.txt if grep -qi ' run error$' <error.txt; then false fi ) runHook postCheck '';
meta = { description = "CGAL bindings using SWIG"; homepage = "https://github.com/CGAL/cgal-swig-bindings"; license = lib.licenses.gpl3Plus; maintainers = with lib.maintainers; [ pbsds ]; # error: no template named 'unary_function' in namespace 'boost::functional::detail' broken = stdenv.hostPlatform.isDarwin; };}