My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/pkgs/development/libraries/flatcc/default.nix

34 lines
682 B

{ lib, stdenv
, 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"
];
NIX_CFLAGS_COMPILE = [
"-Wno-error=misleading-indentation"
"-Wno-error=stringop-overflow"
];
meta = {
description = "FlatBuffers Compiler and Library in C for C ";
homepage = "https://github.com/dvidelabs/flatcc";
license = [ lib.licenses.asl20 ];
};
}