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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

35 lines
713 B
Nix
Raw Normal View History

{ lib, stdenv
2019-03-06 16:28:31 +00:00
, fetchFromGitHub
, cmake
}:
stdenv.mkDerivation rec {
pname = "flatcc";
2022-07-07 12:25:45 +00:00
version = "0.6.1";
2019-03-06 16:28:31 +00:00
src = fetchFromGitHub {
owner = "dvidelabs";
repo = "flatcc";
rev = "v${version}";
2022-07-07 12:25:45 +00:00
sha256 = "sha256-0/IZ7eX6b4PTnlSSdoOH0FsORGK9hrLr1zlr/IHsJFQ=";
2019-03-06 16:28:31 +00:00
};
nativeBuildInputs = [ cmake ];
cmakeFlags = [
"-DFLATCC_INSTALL=on"
];
env.NIX_CFLAGS_COMPILE = toString [
"-Wno-error=misleading-indentation"
"-Wno-error=stringop-overflow"
];
2022-08-26 06:17:53 +00:00
meta = with lib; {
2019-03-06 16:28:31 +00:00
description = "FlatBuffers Compiler and Library in C for C ";
homepage = "https://github.com/dvidelabs/flatcc";
2022-08-26 06:17:53 +00:00
license = [ licenses.asl20 ];
maintainers = with maintainers; [ onny ];
2019-03-06 16:28:31 +00:00
};
}