6 buildOctavePackage rec {
10 src = fetchFromBitbucket {
13 rev = "OctCLIP-${version}";
14 sha256 = "sha256-gG2b8Ix6bzO6O7GRACE81JCVxfXW/+ZdfoniigAEq3g=";
17 # The only compilation problem is that no formatting specifier was provided
18 # for the error function. Because errorText is a string, I provide such a
19 # formatting specifier.
21 sed -i s/"error(errorText)"/"error(\"%s\", errorText)"/g src/*.cc
25 name = "GNU Octave Clipping Polygons Tool";
26 homepage = "https://octave.sourceforge.io/octclip/index.html";
27 license = with licenses; [ gpl3Plus ]; # modified BSD?
28 maintainers = with maintainers; [ KarlJoad ];
29 description = "Perform boolean operations with polygons using the Greiner-Hormann algorithm";