nixpkgs/pkgs/development/libraries/flatcc/default.nix

30 lines
578 B
Nix
Raw Normal View History

2019-03-06 16:28:31 +00:00
{ stdenv
, fetchFromGitHub
, cmake
}:
stdenv.mkDerivation rec {
pname = "flatcc";
version = "0.6.0";
2019-03-06 16:28:31 +00:00
src = fetchFromGitHub {
owner = "dvidelabs";
repo = "flatcc";
rev = "v${version}";
sha256 = "0cy79swgdbaf3zmsaqa6gz3b0fad2yqawwcnsipnpl9d8hn1linm";
2019-03-06 16:28:31 +00:00
};
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";
2019-03-06 16:28:31 +00:00
license = [ stdenv.lib.licenses.asl20 ];
};
}