From 9f0ee6c60640e8da18dda4db547ea867b76b18a0 Mon Sep 17 00:00:00 2001 From: Guillaume Bouchard Date: Mon, 4 Feb 2019 13:03:50 +0100 Subject: [PATCH] primesieve: init at 7.3 --- .../science/math/primesieve/default.nix | 21 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 23 insertions(+) create mode 100644 pkgs/development/libraries/science/math/primesieve/default.nix diff --git a/pkgs/development/libraries/science/math/primesieve/default.nix b/pkgs/development/libraries/science/math/primesieve/default.nix new file mode 100644 index 000000000000..65569b9f3bdb --- /dev/null +++ b/pkgs/development/libraries/science/math/primesieve/default.nix @@ -0,0 +1,21 @@ +{ stdenv, fetchurl, cmake }: + +stdenv.mkDerivation rec { + name = "primesieve-${version}"; + version = "7.3"; + + nativeBuildInputs = [cmake]; + + src = fetchurl { + url = "https://github.com/kimwalisch/primesieve/archive/v${version}.tar.gz"; + sha256 = "0l7h5r4c7hijh0c0nsdxvjqzc9dbhlx535b87fglf2i2p9la1x5v"; + }; + + meta = with stdenv.lib; { + description = "Fast C/C++ prime number generator"; + homepage = "https://primesieve.org/"; + license = licenses.bsd2; + platforms = platforms.unix; + maintainers = with maintainers; [ abbradar ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index c2ead70e50d7..6808df9f0c10 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -12014,6 +12014,8 @@ in portmidi = callPackage ../development/libraries/portmidi {}; + primesieve = callPackage ../development/libraries/science/math/primesieve { }; + prison = callPackage ../development/libraries/prison { }; proj = callPackage ../development/libraries/proj { };