mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 03:17:13 +00:00
9ffc5b3725
Semi-automatic update. These checks were performed: - built on NixOS - ran `/nix/store/2zfi5j6wmfb6hbaqmmsbarbjz8r5f333-flatbuffers-1.8.0/bin/flatc --version` and found version 1.8.0 - found 1.8.0 with grep in /nix/store/2zfi5j6wmfb6hbaqmmsbarbjz8r5f333-flatbuffers-1.8.0 - found 1.8.0 in filename of file in /nix/store/2zfi5j6wmfb6hbaqmmsbarbjz8r5f333-flatbuffers-1.8.0
35 lines
1 KiB
Nix
35 lines
1 KiB
Nix
{ stdenv, fetchFromGitHub, cmake }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "flatbuffers-${version}";
|
|
version = "1.8.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "google";
|
|
repo = "flatbuffers";
|
|
rev = "v${version}";
|
|
sha256 = "1qq8qbv8wkiiizj8s984f17bsbjsrhbs9q1nw1yjgrw0grcxlsi9";
|
|
};
|
|
|
|
buildInputs = [ cmake ];
|
|
enableParallelBuilding = true;
|
|
|
|
# Not sure how tests are supposed to be run.
|
|
# "make: *** No rule to make target 'check'. Stop."
|
|
doCheck = false;
|
|
|
|
meta = {
|
|
description = "Memory Efficient Serialization Library.";
|
|
longDescription = ''
|
|
FlatBuffers is an efficient cross platform serialization library for
|
|
games and other memory constrained apps. It allows you to directly
|
|
access serialized data without unpacking/parsing it first, while still
|
|
having great forwards/backwards compatibility.
|
|
'';
|
|
maintainers = [ stdenv.lib.maintainers.teh ];
|
|
license = stdenv.lib.licenses.asl20;
|
|
platforms = stdenv.lib.platforms.unix;
|
|
homepage = http://google.github.io/flatbuffers;
|
|
};
|
|
}
|