11 stdenv.mkDerivation rec {
15 src = fetchFromGitLab {
20 sha256 = "132l0xv00ld1svvv9wh99wfra4zzjv2885h2sq0dsl98wiyvi5zl";
23 patches = [ ./clean-extra-logfile-output-from-pari.patch ];
41 export VARPREFIX="$out" # see comment on postInstall
42 ./Configure # doesn't take any options
46 # Usually, sympow has 3 levels of caching: statically distributed in /usr/,
47 # shared in /var and per-user in ~/.sympow. The shared cache assumes trust in
48 # other users and a shared /var is not compatible with nix's approach, so we
49 # set VARPREFIX to the read-only $out. This effectively disables shared
50 # caching. See https://trac.sagemath.org/ticket/3360#comment:36 and sympow's
51 # README for more details on caching.
52 # sympow will complain at runtime about the lack of write-permissions on the
53 # shared cache. We pass the `-quiet` flag by default to disable this.
55 wrapProgram "$out/bin/sympow" --add-flags '-quiet'
58 # Example from the README as a sanity check.
59 doInstallCheck = true;
60 installCheckPhase = ''
61 export HOME="$TMP/home"
63 "$out/bin/sympow" -sp 2p16 -curve "[1,2,3,4,5]" | grep '8.3705'
67 description = "Compute special values of symmetric power elliptic curve L-functions";
70 fullName = "Custom, BSD-like. See COPYING file.";
73 maintainers = teams.sage.members;
74 platforms = platforms.linux;