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
56
pkgs/development/libraries/qrupdate/default.nix
Normal file
56
pkgs/development/libraries/qrupdate/default.nix
Normal file
|
|
@ -0,0 +1,56 @@
|
|||
{ stdenv
|
||||
, lib
|
||||
, fetchurl
|
||||
, gfortran
|
||||
, blas
|
||||
, lapack
|
||||
, which
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "qrupdate";
|
||||
version = "1.1.2";
|
||||
src = fetchurl {
|
||||
url = "mirror://sourceforge/qrupdate/${pname}-${version}.tar.gz";
|
||||
sha256 = "024f601685phcm1pg8lhif3lpy5j9j0k6n0r46743g4fvh8wg8g2";
|
||||
};
|
||||
|
||||
preBuild =
|
||||
# Check that blas and lapack are compatible
|
||||
assert (blas.isILP64 == lapack.isILP64);
|
||||
# We don't have structuredAttrs yet implemented, and we need to use space
|
||||
# seprated values in makeFlags, so only this works.
|
||||
''
|
||||
makeFlagsArray+=(
|
||||
"LAPACK=-L${lapack}/lib -llapack"
|
||||
"BLAS=-L${blas}/lib -lblas"
|
||||
"PREFIX=${placeholder "out"}"
|
||||
"FFLAGS=${toString ([
|
||||
"-std=legacy"
|
||||
] ++ lib.optionals blas.isILP64 [
|
||||
# If another application intends to use qrupdate compiled with blas with
|
||||
# 64 bit support, it should add this to it's FFLAGS as well. See (e.g):
|
||||
# https://savannah.gnu.org/bugs/?50339
|
||||
"-fdefault-integer-8"
|
||||
])}"
|
||||
)
|
||||
'';
|
||||
|
||||
doCheck = true;
|
||||
|
||||
checkTarget = "test";
|
||||
|
||||
buildFlags = [ "lib" "solib" ];
|
||||
|
||||
installTargets = lib.optionals stdenv.isDarwin [ "install-staticlib" "install-shlib" ];
|
||||
|
||||
nativeBuildInputs = [ which gfortran ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Library for fast updating of qr and cholesky decompositions";
|
||||
homepage = "https://sourceforge.net/projects/qrupdate/";
|
||||
license = licenses.gpl3Plus;
|
||||
maintainers = with maintainers; [ doronbehar ];
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue