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
55
pkgs/development/libraries/science/math/itpp/default.nix
Normal file
55
pkgs/development/libraries/science/math/itpp/default.nix
Normal file
|
|
@ -0,0 +1,55 @@
|
|||
{ lib, stdenv
|
||||
, fetchurl
|
||||
, cmake
|
||||
, gtest
|
||||
, blas
|
||||
, fftw
|
||||
, liblapack
|
||||
, gfortran
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "it++";
|
||||
version = "4.3.1";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://sourceforge/itpp/itpp-${version}.tar.bz2";
|
||||
sha256 = "0xxqag9wi0lg78xgw7b40rp6wxqp5grqlbs9z0ifvdfzqlhpcwah";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ cmake gfortran ];
|
||||
buildInputs = [
|
||||
fftw
|
||||
liblapack
|
||||
|
||||
# NOTE: OpenBLAS doesn't work here because IT++ doesn't pass aligned
|
||||
# buffers, which causes segfaults in the optimized kernels :-(
|
||||
blas
|
||||
];
|
||||
|
||||
cmakeFlags = [
|
||||
"-DCMAKE_CXX_FLAGS=-std=c++11"
|
||||
"-DBLAS_FOUND:BOOL=TRUE"
|
||||
"-DBLAS_LIBRARIES:STRING=${blas}/lib/libblas.so"
|
||||
"-DLAPACK_FOUND:BOOL=TRUE"
|
||||
"-DLAPACK_LIBRARIES:STRING=${liblapack}/lib/liblapack.so"
|
||||
"-DGTEST_DIR:PATH=${gtest.src}/googletest"
|
||||
];
|
||||
|
||||
doCheck = true;
|
||||
|
||||
checkPhase = ''
|
||||
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH''${LD_LIBRARY_PATH:+:}$PWD/itpp
|
||||
export DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH''${DYLD_LIBRARY_PATH:+:}$PWD/itpp
|
||||
./gtests/itpp_gtests
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "IT++ is a C++ library of mathematical, signal processing and communication classes and functions";
|
||||
homepage = "http://itpp.sourceforge.net/";
|
||||
license = licenses.gpl3;
|
||||
platforms = platforms.unix;
|
||||
maintainers = with maintainers; [ andrew-d ];
|
||||
broken = stdenv.isDarwin; # never built on Hydra https://hydra.nixos.org/job/nixpkgs/trunk/itpp.x86_64-darwin
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue