depot/third_party/nixpkgs/pkgs/development/libraries/flatcc/default.nix
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

35 lines
740 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";
mainProgram = "flatcc";
homepage = "https://github.com/dvidelabs/flatcc";
license = [ licenses.asl20 ];
maintainers = with maintainers; [ onny ];
};
}