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
50
pkgs/development/libraries/openvdb/default.nix
Normal file
50
pkgs/development/libraries/openvdb/default.nix
Normal file
|
|
@ -0,0 +1,50 @@
|
|||
{ lib, stdenv, fetchFromGitHub, openexr, boost, jemalloc, c-blosc, ilmbase, tbb }:
|
||||
|
||||
stdenv.mkDerivation rec
|
||||
{
|
||||
pname = "openvdb";
|
||||
version = "7.0.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "dreamworksanimation";
|
||||
repo = "openvdb";
|
||||
rev = "v${version}";
|
||||
sha256 = "0hhs50f05hkgj1wni53cwbsx2bhn1aam6z65j133356gbid2carl";
|
||||
};
|
||||
|
||||
outputs = [ "out" ];
|
||||
|
||||
buildInputs = [ openexr boost tbb jemalloc c-blosc ilmbase ];
|
||||
|
||||
setSourceRoot = ''
|
||||
sourceRoot=$(echo */openvdb)
|
||||
'';
|
||||
|
||||
installTargets = [ "install_lib" ];
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
buildFlags = [
|
||||
"lib"
|
||||
"DESTDIR=$(out)"
|
||||
"HALF_LIB=-lHalf"
|
||||
"TBB_LIB=-ltbb"
|
||||
"BLOSC_LIB=-lblosc"
|
||||
"LOG4CPLUS_LIB="
|
||||
"BLOSC_INCLUDE_DIR=${c-blosc}/include/"
|
||||
"BLOSC_LIB_DIR=${c-blosc}/lib/"
|
||||
];
|
||||
|
||||
installFlags = [ "DESTDIR=$(out)" ];
|
||||
|
||||
NIX_CFLAGS_COMPILE="-I${openexr.dev}/include/OpenEXR -I${ilmbase.dev}/include/OpenEXR/";
|
||||
NIX_LDFLAGS="-lboost_iostreams";
|
||||
|
||||
meta = with lib; {
|
||||
description = "An open framework for voxel";
|
||||
homepage = "https://www.openvdb.org";
|
||||
maintainers = [ maintainers.guibou ];
|
||||
platforms = platforms.linux;
|
||||
license = licenses.mpl20;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue