about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/libraries/science/math/flintqs/default.nix
blob: c5426ed67fc7f01b95054cfbc02537f24dab67f3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
{ lib, stdenv
, fetchFromGitHub
, autoreconfHook
, gmp
}:

stdenv.mkDerivation rec {
  version = "1.0";
  pname = "flintqs";

  src = fetchFromGitHub {
    owner = "sagemath";
    repo = "FlintQS";
    rev = "v${version}";
    sha256 = "1f0lnayz6j6qgasx8pbq61d2fqam0wwhsmh6h15l4vq58l1vvbwj";
  };

  preAutoreconf = ''
    touch ChangeLog
  '';

  buildInputs = [
    gmp
  ];

  nativeBuildInputs = [
    autoreconfHook
  ];

  doCheck = true;

  meta = with lib; {
    description = "Highly optimized multi-polynomial quadratic sieve for integer factorization";
    homepage = "https://github.com/sagemath/FlintQS";
    license = with licenses; [ gpl2 ];
    maintainers = teams.sage.members;
    mainProgram = "QuadraticSieve";
    platforms = platforms.all;
  };
}