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/draco/default.nix
Normal file
57
pkgs/development/libraries/draco/default.nix
Normal file
|
|
@ -0,0 +1,57 @@
|
|||
{ lib
|
||||
, stdenv
|
||||
, fetchFromGitHub
|
||||
, nix-update-script
|
||||
, cmake
|
||||
, python3
|
||||
, gtest
|
||||
, withAnimation ? true
|
||||
, withTranscoder ? true
|
||||
, eigen
|
||||
, ghc_filesystem
|
||||
, tinygltf
|
||||
}:
|
||||
|
||||
let
|
||||
cmakeBool = b: if b then "ON" else "OFF";
|
||||
in
|
||||
stdenv.mkDerivation rec {
|
||||
version = "1.5.2";
|
||||
pname = "draco";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "google";
|
||||
repo = "draco";
|
||||
rev = version;
|
||||
sha256 = "sha256-o6KQJFrnxx2kz6g3vXk1w435OmaJhAJjzsKM/gmVJ2M=";
|
||||
fetchSubmodules = true;
|
||||
};
|
||||
|
||||
buildInputs = [ gtest ]
|
||||
++ lib.optionals withTranscoder [ eigen ghc_filesystem tinygltf ];
|
||||
|
||||
nativeBuildInputs = [ cmake python3 ];
|
||||
|
||||
cmakeFlags = [
|
||||
"-DDRACO_ANIMATION_ENCODING=${cmakeBool withAnimation}"
|
||||
"-DDRACO_GOOGLETEST_PATH=${gtest}"
|
||||
"-DBUILD_SHARED_LIBS=${cmakeBool true}"
|
||||
"-DDRACO_TRANSCODER_SUPPORTED=${cmakeBool withTranscoder}"
|
||||
] ++ lib.optionals withTranscoder [
|
||||
"-DDRACO_EIGEN_PATH=${eigen}/include/eigen3"
|
||||
"-DDRACO_FILESYSTEM_PATH=${ghc_filesystem}"
|
||||
"-DDRACO_TINYGLTF_PATH=${tinygltf}"
|
||||
];
|
||||
|
||||
passthru.updateScript = nix-update-script {
|
||||
attrPath = pname;
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
description = "Library for compressing and decompressing 3D geometric meshes and point clouds";
|
||||
homepage = "https://google.github.io/draco/";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ jansol ];
|
||||
platforms = platforms.all;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue