571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
34 lines
902 B
Nix
34 lines
902 B
Nix
{ lib, stdenv, fetchsvn, zlib, gmp, ecm }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "msieve";
|
|
version = "1056";
|
|
|
|
src = fetchsvn {
|
|
url = "svn://svn.code.sf.net/p/msieve/code/trunk";
|
|
rev = version;
|
|
hash = "sha256-6ErVn4pYPMG5VFjOQURLsHNpN0pGdp55+rjY8988onU=";
|
|
};
|
|
|
|
buildInputs = [ zlib gmp ecm ];
|
|
|
|
ECM = if ecm == null then "0" else "1";
|
|
|
|
# Doesn't hurt Linux but lets clang-based platforms like Darwin work fine too
|
|
makeFlags = [ "CC=${stdenv.cc.targetPrefix}cc" "all" ];
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/bin/
|
|
cp msieve $out/bin/
|
|
'';
|
|
|
|
meta = {
|
|
description = "C library implementing a suite of algorithms to factor large integers";
|
|
mainProgram = "msieve";
|
|
license = lib.licenses.publicDomain;
|
|
homepage = "http://msieve.sourceforge.net/";
|
|
maintainers = [ lib.maintainers.roconnor ];
|
|
platforms = [ "x86_64-linux" ] ++ lib.platforms.darwin;
|
|
};
|
|
}
|