1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-18 03:30:45 +00:00

Merge pull request #318481 from sikmir/sympow

sympow: 2.023.6 → 2.023.7
This commit is contained in:
Mauricio Collares 2024-06-16 19:00:12 +02:00 committed by GitHub
commit a7860bd8f1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 20 additions and 27 deletions

View file

@ -13,18 +13,18 @@ Date: Tue Mar 2 22:07:11 2021 -0300
mechanism already in sympow to trim this new message.
diff --git a/Configure b/Configure
index 1ef9756..776bec2 100755
index 53b556e..53999ae 100755
--- a/Configure
+++ b/Configure
@@ -322,7 +322,7 @@ echo "datafiles/param_data: \$(OTHERb)" >> $FILE
echo " \$(MKDIR) -p datafiles" >> $FILE
echo " \$(TOUCH) datafiles/param_data" >> $FILE
echo " \$(SH) armd.sh" >> $FILE
-echo " \$(SED) -i -e '/logfile =/d' datafiles/*.txt" >> $FILE
-echo " \$(SED) -i -e '/logfile =/d' datafiles/*.txt" >> $FILE
+echo " \$(SED) -i -e '/logfile /d' datafiles/*.txt" >> $FILE
echo " \$(SED) -i -e '/logfile is/d' datafiles/*.txt" >> $FILE
echo "sympow.1: sympow" >> $FILE
echo " \$(HELP2MAN) \$(H2MFLAGS) -s 1 -n \"SYMPOW program\" -I sympow.h2m -o \$@ ./\$<" >> $FILE
echo "clean:" >> $FILE
diff --git a/generate.c b/generate.c
index dbb811f..783320c 100644
--- a/generate.c

View file

@ -1,16 +1,17 @@
{ lib, stdenv
, fetchFromGitLab
, fetchpatch
, makeWrapper
, which
, autoconf
, help2man
, file
, pari
{
lib,
stdenv,
fetchFromGitLab,
makeWrapper,
which,
autoconf,
help2man,
file,
pari,
}:
stdenv.mkDerivation rec {
version = "2.023.6";
version = "2.023.7";
pname = "sympow";
src = fetchFromGitLab {
@ -18,17 +19,10 @@ stdenv.mkDerivation rec {
owner = "forks";
repo = "sympow";
rev = "v${version}";
sha256 = "132l0xv00ld1svvv9wh99wfra4zzjv2885h2sq0dsl98wiyvi5zl";
hash = "sha256-sex8gRiBdTcVMV3nSeiTYamAjPoXQdiiZwjRmeKA+mc=";
};
patches = [
./clean-extra-logfile-output-from-pari.patch
(fetchpatch {
name = "null-terminate-dupdirname.patch";
url = "https://gitlab.com/rezozer/forks/sympow/-/merge_requests/5.diff";
sha256 = "sha256-yKjio+qN9teL8L+mb7WOBN/iv545vRIxW20FJU37oO4=";
})
];
patches = [ ./clean-extra-logfile-output-from-pari.patch ];
postUnpack = ''
patchShebangs .
@ -66,12 +60,11 @@ stdenv.mkDerivation rec {
# Example from the README as a sanity check.
doInstallCheck = true;
installCheckPhase = ''
export HOME="$TMP/home"
mkdir -p "$HOME"
export HOME=$TMPDIR
"$out/bin/sympow" -sp 2p16 -curve "[1,2,3,4,5]" | grep '8.3705'
'';
meta = with lib; {
meta = {
description = "Compute special values of symmetric power elliptic curve L-functions";
mainProgram = "sympow";
license = {
@ -79,7 +72,7 @@ stdenv.mkDerivation rec {
fullName = "Custom, BSD-like. See COPYING file.";
free = true;
};
maintainers = teams.sage.members;
platforms = platforms.linux;
maintainers = lib.teams.sage.members;
platforms = lib.platforms.linux;
};
}