2021-01-21 17:00:13 +00:00
|
|
|
{ lib, stdenv
|
2019-03-06 16:28:31 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, cmake
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "flatcc";
|
2019-09-26 16:42:05 +01:00
|
|
|
version = "0.6.0";
|
2019-03-06 16:28:31 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "dvidelabs";
|
|
|
|
repo = "flatcc";
|
|
|
|
rev = "v${version}";
|
2019-09-26 16:42:05 +01:00
|
|
|
sha256 = "0cy79swgdbaf3zmsaqa6gz3b0fad2yqawwcnsipnpl9d8hn1linm";
|
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 ";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/dvidelabs/flatcc";
|
2021-01-21 17:00:13 +00:00
|
|
|
license = [ lib.licenses.asl20 ];
|
2019-03-06 16:28:31 +00:00
|
|
|
};
|
|
|
|
}
|