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
48
pkgs/development/libraries/highfive/default.nix
Normal file
48
pkgs/development/libraries/highfive/default.nix
Normal file
|
|
@ -0,0 +1,48 @@
|
|||
{ lib, stdenv
|
||||
, fetchFromGitHub
|
||||
, cmake
|
||||
, boost
|
||||
, eigen
|
||||
, hdf5
|
||||
, mpiSupport ? hdf5.mpiSupport
|
||||
, mpi ? hdf5.mpi
|
||||
}:
|
||||
|
||||
assert mpiSupport -> mpi != null;
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "highfive${lib.optionalString mpiSupport "-mpi"}";
|
||||
version = "2.3.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "BlueBrain";
|
||||
repo = "HighFive";
|
||||
rev = "v${version}";
|
||||
sha256 = "qaIThJGdoLgs82h+W4BKQEu1yy1bB8bZFiuxI7IxInw=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ cmake ];
|
||||
|
||||
buildInputs = [ boost eigen hdf5 ];
|
||||
|
||||
passthru = {
|
||||
inherit mpiSupport mpi;
|
||||
};
|
||||
|
||||
cmakeFlags = [
|
||||
"-DHIGHFIVE_USE_BOOST=ON"
|
||||
"-DHIGHFIVE_USE_EIGEN=ON"
|
||||
"-DHIGHFIVE_EXAMPLES=OFF"
|
||||
"-DHIGHFIVE_UNIT_TESTS=OFF"
|
||||
"-DHIGHFIVE_USE_INSTALL_DEPS=ON"
|
||||
]
|
||||
++ (lib.optionals mpiSupport [ "-DHIGHFIVE_PARALLEL_HDF5=ON" ]);
|
||||
|
||||
meta = with lib; {
|
||||
description = "Header-only C++ HDF5 interface";
|
||||
license = licenses.boost;
|
||||
homepage = "https://bluebrain.github.io/HighFive/";
|
||||
platforms = platforms.unix;
|
||||
maintainers = with maintainers; [ robertodr ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue