2019-03-06 16:28:31 +00:00
|
|
|
{ stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, cmake
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "flatcc";
|
2019-04-14 21:42:47 +01:00
|
|
|
version = "0.5.3";
|
2019-03-06 16:28:31 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "dvidelabs";
|
|
|
|
repo = "flatcc";
|
|
|
|
rev = "v${version}";
|
2019-04-14 21:42:47 +01:00
|
|
|
sha256 = "06wnwvnkhw1rk0y3nncjmcyjy3bgpw8i9xqd5gpbhbrm38718cjk";
|
2019-03-06 16:28:31 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
|
|
|
|
cmakeFlags = [
|
|
|
|
"-DFLATCC_INSTALL=on"
|
|
|
|
"-DCMAKE_BUILD_TYPE=Release"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "FlatBuffers Compiler and Library in C for C ";
|
|
|
|
homepage = https://github.com/dvidelabs/flatcc;
|
|
|
|
license = [ stdenv.lib.licenses.asl20 ];
|
|
|
|
};
|
|
|
|
}
|