Merge pull request #55196 from guibou/primesieve
Introduce the primesieve package
This commit is contained in:
commit
790e14c0d7
@ -1196,4 +1196,11 @@ self: super: {
|
||||
beam-migrate = appendPatch super.beam-migrate ./patches/beam-migrate-fix-ghc-8.6.x-build.patch;
|
||||
beam-postgres = appendPatch super.beam-postgres ./patches/beam-postgres-fix-ghc-8.6.x-build.patch;
|
||||
beam-sqlite = appendPatch super.beam-sqlite ./patches/beam-sqlite-fix-ghc-8.6.x-build.patch;
|
||||
|
||||
# https://github.com/sighingnow/computations/pull/1
|
||||
primesieve = appendPatch super.primesieve (pkgs.fetchpatch {
|
||||
url = "https://github.com/sighingnow/computations/commit/1f96788367c879b999afe733e2fe28d919d17702.patch";
|
||||
sha256 = "0lrcmcrxp9imj9rfaq7mb0fn9mxms4gq4sz95n4san3dpd0qmj9x";
|
||||
stripLen = 1;
|
||||
});
|
||||
} // import ./configuration-tensorflow.nix {inherit pkgs haskellLib;} self super
|
||||
|
@ -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 ];
|
||||
};
|
||||
}
|
@ -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 { };
|
||||
|
Loading…
Reference in New Issue
Block a user