1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-22 13:41:26 +00:00

octave.pkgs.octclip: init at 2.0.1

This commit is contained in:
Karl Hallsby 2021-01-06 11:42:25 -06:00 committed by Doron Behar
parent 656fbc8b4c
commit 8919d98862
2 changed files with 31 additions and 0 deletions

View file

@ -0,0 +1,29 @@
{ buildOctavePackage
, lib
, fetchurl
}:
buildOctavePackage rec {
pname = "octclip";
version = "2.0.1";
src = fetchurl {
url = "mirror://sourceforge/octave/${pname}-${version}.tar.gz";
sha256 = "05ijh3izgfaan84n6zp690nap9vnz0zicjd0cgvd1c6askm7vxql";
};
# The only compilation problem is that no formatting specifier was provided
# for the error function. Because errorText is a string, I provide such a
# formatting specifier.
patchPhase = ''
sed -i s/"error(errorText)"/"error(\"%s\", errorText)"/g src/*.cc
'';
meta = with lib; {
name = "GNU Octave Clipping Polygons Tool";
homepage = "https://octave.sourceforge.io/octclip/index.html";
license = with licenses; [ gpl3Plus ]; # modified BSD?
maintainers = with maintainers; [ KarlJoad ];
description = "Perform boolean operations with polygons using the Greiner-Hormann algorithm";
};
}

View file

@ -159,6 +159,8 @@ makeScope newScope (self:
ocl = callPackage ../development/octave-modules/ocl { };
octclip = callPackage ../development/octave-modules/octclip { };
signal = callPackage ../development/octave-modules/signal { };
symbolic = callPackage ../development/octave-modules/symbolic {