summary refs log tree commit diff
path: root/pkgs/development/libraries/flatbuffers
diff options
context:
space:
mode:
authorTom Hunger <tehunger@gmail.com>2016-10-20 14:36:59 +0100
committerTom Hunger <tehunger@gmail.com>2016-10-20 16:39:10 +0100
commita4debd6688c0e252521030fced1c1ec13c963fc7 (patch)
tree1c7747eda868f4e2e87f86f130908a753d850eb8 /pkgs/development/libraries/flatbuffers
parentba42683e9afd8f3195d2c9659bb5f9f368ea0560 (diff)
downloadnixpkgs-a4debd6688c0e252521030fced1c1ec13c963fc7.tar
nixpkgs-a4debd6688c0e252521030fced1c1ec13c963fc7.tar.gz
nixpkgs-a4debd6688c0e252521030fced1c1ec13c963fc7.tar.bz2
nixpkgs-a4debd6688c0e252521030fced1c1ec13c963fc7.tar.lz
nixpkgs-a4debd6688c0e252521030fced1c1ec13c963fc7.tar.xz
nixpkgs-a4debd6688c0e252521030fced1c1ec13c963fc7.tar.zst
nixpkgs-a4debd6688c0e252521030fced1c1ec13c963fc7.zip
flatbuffers: init at 1.4.0
Diffstat (limited to 'pkgs/development/libraries/flatbuffers')
-rw-r--r--pkgs/development/libraries/flatbuffers/default.nix34
1 files changed, 34 insertions, 0 deletions
diff --git a/pkgs/development/libraries/flatbuffers/default.nix b/pkgs/development/libraries/flatbuffers/default.nix
new file mode 100644
index 00000000000..add520558ba
--- /dev/null
+++ b/pkgs/development/libraries/flatbuffers/default.nix
@@ -0,0 +1,34 @@
+{ stdenv, fetchFromGitHub, cmake }:
+
+stdenv.mkDerivation rec {
+  name = "flatbuffers-${version}";
+  version = "1.4.0";
+
+  src = fetchFromGitHub {
+    owner = "google";
+    repo = "flatbuffers";
+    rev = "v${version}";
+    sha256 = "0jsqk49h521d5h4c9gk39a8968g6rcd6520a8knbfc7ssc4028y0";
+  };
+
+  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;
+  };
+}