5e7c2d6cef
GitOrigin-RevId: f99e5f03cc0aa231ab5950a15ed02afec45ed51a
34 lines
713 B
Nix
34 lines
713 B
Nix
{ lib, stdenv
|
|
, fetchFromGitHub
|
|
, cmake
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "flatcc";
|
|
version = "0.6.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "dvidelabs";
|
|
repo = "flatcc";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-0/IZ7eX6b4PTnlSSdoOH0FsORGK9hrLr1zlr/IHsJFQ=";
|
|
};
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
cmakeFlags = [
|
|
"-DFLATCC_INSTALL=on"
|
|
];
|
|
|
|
env.NIX_CFLAGS_COMPILE = toString [
|
|
"-Wno-error=misleading-indentation"
|
|
"-Wno-error=stringop-overflow"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "FlatBuffers Compiler and Library in C for C ";
|
|
homepage = "https://github.com/dvidelabs/flatcc";
|
|
license = [ licenses.asl20 ];
|
|
maintainers = with maintainers; [ onny ];
|
|
};
|
|
}
|