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
57
pkgs/development/libraries/flint/default.nix
Normal file
57
pkgs/development/libraries/flint/default.nix
Normal file
|
|
@ -0,0 +1,57 @@
|
|||
{ lib
|
||||
, stdenv
|
||||
, fetchurl
|
||||
, gmp
|
||||
, mpir
|
||||
, mpfr
|
||||
, ntl
|
||||
, openblas ? null, blas, lapack
|
||||
, withBlas ? true
|
||||
}:
|
||||
|
||||
assert withBlas -> openblas != null && blas.implementation == "openblas" && lapack.implementation == "openblas";
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "flint";
|
||||
version = "2.8.5";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://www.flintlib.org/flint-${version}.tar.gz";
|
||||
sha256 = "sha256-WRH+3/kREA8VeB8146T6k0/mDkrqAqjBDMiRgQHB7tg=";
|
||||
};
|
||||
|
||||
buildInputs = [
|
||||
gmp
|
||||
mpir
|
||||
mpfr
|
||||
ntl
|
||||
] ++ lib.optionals withBlas [
|
||||
openblas
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
mpfr # flint.h includes mpfr.h
|
||||
];
|
||||
|
||||
configureFlags = [
|
||||
"--with-gmp=${gmp}"
|
||||
"--with-mpir=${mpir}"
|
||||
"--with-mpfr=${mpfr}"
|
||||
"--with-ntl=${ntl}"
|
||||
] ++ lib.optionals withBlas [
|
||||
"--with-blas=${openblas}"
|
||||
];
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
doCheck = true;
|
||||
|
||||
meta = with lib; {
|
||||
description = "Fast Library for Number Theory";
|
||||
license = licenses.gpl2Plus;
|
||||
maintainers = teams.sage.members;
|
||||
platforms = platforms.unix;
|
||||
homepage = "https://www.flintlib.org/";
|
||||
downloadPage = "https://www.flintlib.org/downloads.html";
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue