uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
31
pkgs/applications/science/math/msieve/default.nix
Normal file
31
pkgs/applications/science/math/msieve/default.nix
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
{ lib, stdenv, fetchurl, zlib, gmp, ecm }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "msieve";
|
||||
version = "1.53";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://sourceforge/msieve/msieve/Msieve%20v${version}/msieve${lib.replaceStrings ["."] [""] version}_src.tar.gz";
|
||||
sha256 = "1d1vv7j4rh3nnxsmvafi73qy7lw7n3akjlm5pjl3m936yapvmz65";
|
||||
};
|
||||
|
||||
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 = "A C library implementing a suite of algorithms to factor large integers";
|
||||
license = lib.licenses.publicDomain;
|
||||
homepage = "http://msieve.sourceforge.net/";
|
||||
maintainers = [ lib.maintainers.roconnor ];
|
||||
platforms = [ "x86_64-linux" ] ++ lib.platforms.darwin;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue