10 buildOctavePackage rec {
12 version = "2019-04-13";
15 url = "https://git.code.sf.net/p/octave/${pname}";
16 rev = "dbf46228a7582eef4fe5470fd00bc5b421dd33a5";
17 sha256 = "14qwa4j24m2j7njw8gbagkgmp040h6k0h7kyrrzgb9y0jm087qkl";
18 fetchSubmodules = false;
21 # The monstrosity of a regex below is to ensure that only error() calls are
22 # corrected to have a %s format specifier. However, logic_error() also
23 # exists, (a simple regex also matches that), but logic_error() doesn't
24 # require a format specifier. So, this regex was born to handle that...
26 substituteInPlace build.sh --replace "level-set-0.3.1" "${pname}-${version}" \
27 --replace "\`pwd\`" '/build'
28 sed -i -E 's#[^[:graph:]]error \(# error \(\"%s\", #g' src/*.cpp
37 requiredOctavePackages = [
49 homepage = "https://octave.sourceforge.io/level-set/index.html";
50 license = licenses.gpl3Plus;
51 maintainers = with maintainers; [ KarlJoad ];
52 description = "Routines for calculating the time-evolution of the level-set equation and extracting geometric information from the level-set function";
53 # Got broke with octave 8.x update, and wasn't updated since 2019