git.iko.soy/typeable/nixpkgs
on master help sign in
symmetrica: add patches
commit424835acc87112d114944a529bdea27f2fb24843 authorTimo Kaufmann <timokau@zoho.com> dateMon 7 May 2018, 23:11 (9 years ago) parent5d78baa
1 file changed+20−3
pkgs/applications/science/math/symmetrica/default.nix+20−3
pkgs/applications/science/math/symmetrica/default.nix+20−3
@@ -1,14 +1,15 @@
1−{stdenv, fetchurl}:
1+{ stdenv
2+, fetchurl
3+, fetchpatch
4+}:
25stdenv.mkDerivation rec {
36 name = "symmetrica-${version}";
47 version = "2.0";
5− # or fetchFromGitHub(owner,repo,rev) or fetchgit(rev)
68 src = fetchurl {
79 url = "http://www.algorithm.uni-bayreuth.de/en/research/SYMMETRICA/SYM2_0_tar.gz";
810 sha256 = "1qhfrbd5ybb0sinl9pad64rscr08qvlfzrzmi4p4hk61xn6phlmz";
911 name = "symmetrica-2.0.tar.gz";
1012 };
11− buildInputs = [];
1213 sourceRoot = ".";
1314 installPhase = ''
1415 mkdir -p "$out"/{lib,share/doc/symmetrica,include/symmetrica}
@@ -18,6 +19,22 @@ stdenv.mkDerivation rec {
1819 cp *.h "$out/include/symmetrica"
1920 cp README *.doc "$out/share/doc/symmetrica"
2021 '';
22+ patches = [
23+ # don't show banner ("SYMMETRICA VERSION X - STARTING)
24+ # it doesn't contain very much helpful information and a banner is not ideal for a library
25+ (fetchpatch {
26+ url = "https://git.sagemath.org/sage.git/plain/build/pkgs/symmetrica/patches/de.patch?id=07d6c37d18811e2b377a9689790a7c5e24da16ba";
27+ sha256 = "0df0vqixcfpzny6dkhyj87h8aznz3xn3zfwwlj8pd10bpb90k6gb";
28+ })
29+
30+ # use int32_t and uint32_t for type INT
31+ # see https://trac.sagemath.org/ticket/13413
32+ (fetchpatch {
33+ name = "fix_64bit_integer_overflow.patch";
34+ url = "https://git.sagemath.org/sage.git/plain/build/pkgs/symmetrica/patches/int32.patch?id=07d6c37d18811e2b377a9689790a7c5e24da16ba";
35+ sha256 = "0p33c85ck4kd453z687ni4bdcqr1pqx2756j7aq11bf63vjz4cyz";
36+ })
37+ ];
2138 meta = {
2239 inherit version;
2340 description = ''A collection of routines for representation theory and combinatorics'';