tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
linbox: 1.6.3 -> 1.7.0
Mauricio Collares
4 years ago
6bee3464
728c0431
+2
-29
2 changed files
expand all
collapse all
unified
split
pkgs
development
libraries
linbox
default.nix
patches
linbox-pr256-part2.patch
+2
-16
pkgs/development/libraries/linbox/default.nix
···
14
14
15
15
stdenv.mkDerivation rec {
16
16
pname = "linbox";
17
17
-
version = "1.6.3"; # TODO: Check postPatch script on update
17
17
+
version = "1.7.0";
18
18
19
19
src = fetchFromGitHub {
20
20
owner = "linbox-team";
21
21
repo = pname;
22
22
rev = "v${version}";
23
23
-
sha256 = "10j6dspbsq7d2l4q3y0c1l1xwmaqqba2fxg59q5bhgk9h5d7q571";
23
23
+
sha256 = "sha256-mW84a98KPLqcHMjX3LIYTmVe0ngUdz6RJLpoDaAqKU8=";
24
24
};
25
25
26
26
nativeBuildInputs = [
···
34
34
gmpxx
35
35
fflas-ffpack
36
36
];
37
37
-
38
38
-
patches = [
39
39
-
# Remove inappropriate `const &` qualifiers on data members that can be
40
40
-
# modified via member functions.
41
41
-
# See also: https://github.com/linbox-team/linbox/pull/256
42
42
-
./patches/linbox-pr256-part2.patch # TODO: Remove on 1.7.0 update
43
43
-
];
44
44
-
45
45
-
postPatch = ''
46
46
-
# Remove @LINBOXSAGE_LIBS@ that is actually undefined.
47
47
-
# See also: https://github.com/linbox-team/linbox/pull/249
48
48
-
# TODO: Remove on 1.7.0 update
49
49
-
find . -type f -exec sed -e 's/@LINBOXSAGE_LIBS@//' -i {} \;
50
50
-
'';
51
37
52
38
configureFlags = [
53
39
"--with-blas-libs=-lblas"
-13
pkgs/development/libraries/linbox/patches/linbox-pr256-part2.patch
···
1
1
-
--- a/linbox/algorithms/det-rational.h
2
2
-
+++ b/linbox/algorithms/det-rational.h
3
3
-
@@ -79,8 +79,8 @@
4
4
-
struct MyRationalModularDet {
5
5
-
const Blackbox &A;
6
6
-
const MyMethod &M;
7
7
-
- const Integer &mul;//multiplicative prec;
8
8
-
- const Integer ÷
9
9
-
+ Integer mul;//multiplicative prec;
10
10
-
+ Integer div;
11
11
-
12
12
-
MyRationalModularDet(const Blackbox& b, const MyMethod& n,
13
13
-
const Integer & p1, const Integer & p2) :