2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv
|
2020-04-24 23:36:52 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, cmake
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "flatcc";
|
|
|
|
version = "0.6.0";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "dvidelabs";
|
|
|
|
repo = "flatcc";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "0cy79swgdbaf3zmsaqa6gz3b0fad2yqawwcnsipnpl9d8hn1linm";
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
|
|
|
|
cmakeFlags = [
|
|
|
|
"-DFLATCC_INSTALL=on"
|
|
|
|
"-DCMAKE_BUILD_TYPE=Release"
|
|
|
|
];
|
|
|
|
|
2022-04-27 09:35:20 +00:00
|
|
|
NIX_CFLAGS_COMPILE = [
|
|
|
|
"-Wno-error=misleading-indentation"
|
|
|
|
"-Wno-error=stringop-overflow"
|
|
|
|
];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = {
|
|
|
|
description = "FlatBuffers Compiler and Library in C for C ";
|
|
|
|
homepage = "https://github.com/dvidelabs/flatcc";
|
2021-02-05 17:12:51 +00:00
|
|
|
license = [ lib.licenses.asl20 ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|