lol

lemon-graph: fix C++17 build

+20
+5
pkgs/development/libraries/lemon-graph/default.nix
··· 18 18 # error: no viable conversion from ... 19 19 doCheck = !stdenv.isDarwin; 20 20 21 + patches = [ 22 + # error: ISO C++17 does not allow 'register' storage class specifier 23 + ./remove-register.patch 24 + ]; 25 + 21 26 meta = with lib; { 22 27 homepage = "https://lemon.cs.elte.hu/trac/lemon"; 23 28 description = "Efficient library for combinatorial optimization tasks on graphs and networks";
+15
pkgs/development/libraries/lemon-graph/remove-register.patch
··· 1 + diff --git a/lemon/random.h b/lemon/random.h 2 + index 8de74ede8a..f9861f3916 100644 3 + --- a/lemon/random.h 4 + +++ b/lemon/random.h 5 + @@ -249,8 +249,8 @@ namespace lemon { 6 + 7 + current = state + length; 8 + 9 + - register Word *curr = state + length - 1; 10 + - register long num; 11 + + Word *curr = state + length - 1; 12 + + long num; 13 + 14 + num = length - shift; 15 + while (num--) {