Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
33 lines
924 B
Nix
33 lines
924 B
Nix
{
|
|
buildOctavePackage,
|
|
lib,
|
|
fetchFromBitbucket,
|
|
}:
|
|
|
|
buildOctavePackage rec {
|
|
pname = "octclip";
|
|
version = "2.0.3";
|
|
|
|
src = fetchFromBitbucket {
|
|
owner = "jgpallero";
|
|
repo = pname;
|
|
rev = "OctCLIP-${version}";
|
|
sha256 = "sha256-gG2b8Ix6bzO6O7GRACE81JCVxfXW/+ZdfoniigAEq3g=";
|
|
};
|
|
|
|
# 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 = {
|
|
name = "GNU Octave Clipping Polygons Tool";
|
|
homepage = "https://gnu-octave.github.io/packages/octclip/";
|
|
license = with lib.licenses; [ gpl3Plus ]; # modified BSD?
|
|
maintainers = with lib.maintainers; [ KarlJoad ];
|
|
description = "Perform boolean operations with polygons using the Greiner-Hormann algorithm";
|
|
};
|
|
}
|