tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
zn_poly: 0.9.1 -> 0.9.2
Armeen Mahdian
3 years ago
7e56a8b1
09a02d7e
+4
-14
1 changed file
expand all
collapse all
unified
split
pkgs
development
libraries
science
math
zn_poly
default.nix
+4
-14
pkgs/development/libraries/science/math/zn_poly/default.nix
···
3
3
, fetchFromGitLab
4
4
, fetchpatch
5
5
, gmp
6
6
-
, python2
6
6
+
, python3
7
7
, tune ? false # tune to hardware, impure
8
8
}:
9
9
10
10
stdenv.mkDerivation rec {
11
11
-
version = "0.9.1";
11
11
+
version = "0.9.2";
12
12
pname = "zn_poly";
13
13
14
14
# sage has picked up the maintenance (bug fixes and building, not development)
···
18
18
owner = "sagemath";
19
19
repo = "zn_poly";
20
20
rev = version;
21
21
-
sha256 = "0ra5vy585bqq7g3317iw6fp44iqgqvds3j0l1va6mswimypq4vxb";
21
21
+
hash = "sha256-QBItcrrpOGj22/ShTDdfZjm63bGW2xY4c71R1q8abPE=";
22
22
};
23
23
24
24
buildInputs = [
···
26
26
];
27
27
28
28
nativeBuildInputs = [
29
29
-
python2 # needed by ./configure to create the makefile
29
29
+
python3 # needed by ./configure to create the makefile
30
30
];
31
31
32
32
# name of library file ("libzn_poly.so")
···
42
42
43
43
configureFlags = lib.optionals (!tune) [
44
44
"--disable-tuning"
45
45
-
];
46
46
-
47
47
-
patches = [
48
48
-
# fix format-security by not passing variables directly to printf
49
49
-
# https://gitlab.com/sagemath/zn_poly/merge_requests/1
50
50
-
(fetchpatch {
51
51
-
name = "format-security.patch";
52
52
-
url = "https://gitlab.com/timokau/zn_poly/commit/1950900a80ec898d342b8bcafa148c8027649766.patch";
53
53
-
sha256 = "1gks9chvsfpc6sg5h3nqqfia4cgvph7jmj9dw67k7dk7kv9y0rk1";
54
54
-
})
55
45
];
56
46
57
47
# `make install` fails to install some header files and the lib file.