blob: e5e26d7bb952f6a4ff1803fb560e29914c8b52cb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
{ buildOctavePackage
, lib
, fetchurl
}:
buildOctavePackage rec {
pname = "nurbs";
version = "1.3.13";
src = fetchurl {
url = "mirror://sourceforge/octave/${pname}-${version}.tar.gz";
sha256 = "0zkyldm63pc3pcal3yvj6af24cvpjvv9qfhf0ihhwcsh4w3yggyv";
};
# Has been fixed in more recent commits, but has not been pushed out as a
# new version yet.
# The sed changes allow nurbs to compile.
patchPhase = ''
sed -i s/feval/octave::feval/g src/*.cc
sed -i s/is_real_type/isreal/g src/*.cc
sed -i s/is_cell/iscell/g src/*.cc
'';
meta = with lib; {
homepage = "https://octave.sourceforge.io/nurbs/index.html";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ KarlJoad ];
description = "Collection of routines for the creation, and manipulation of Non-Uniform Rational B-Splines (NURBS), based on the NURBS toolbox by Mark Spink";
};
}
|