mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-11-06 10:16:44 +01:00
30 lines
578 B
Nix
30 lines
578 B
Nix
{ 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"
|
|
];
|
|
|
|
meta = {
|
|
description = "FlatBuffers Compiler and Library in C for C ";
|
|
homepage = "https://github.com/dvidelabs/flatcc";
|
|
license = [ stdenv.lib.licenses.asl20 ];
|
|
};
|
|
}
|