mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-20 12:43:52 +00:00
f9fdf2d402
with structuredAttrs lists will be bash arrays which cannot be exported which will be a issue with some patches and some wrappers like cc-wrapper this makes it clearer that NIX_CFLAGS_COMPILE must be a string as lists in env cause a eval failure
36 lines
746 B
Nix
36 lines
746 B
Nix
{ lib, stdenv
|
|
, fetchFromGitHub
|
|
, cmake
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "flatcc";
|
|
version = "0.6.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "dvidelabs";
|
|
repo = "flatcc";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-0/IZ7eX6b4PTnlSSdoOH0FsORGK9hrLr1zlr/IHsJFQ=";
|
|
};
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
cmakeFlags = [
|
|
"-DFLATCC_INSTALL=on"
|
|
"-DCMAKE_BUILD_TYPE=Release"
|
|
];
|
|
|
|
env.NIX_CFLAGS_COMPILE = toString [
|
|
"-Wno-error=misleading-indentation"
|
|
"-Wno-error=stringop-overflow"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "FlatBuffers Compiler and Library in C for C ";
|
|
homepage = "https://github.com/dvidelabs/flatcc";
|
|
license = [ licenses.asl20 ];
|
|
maintainers = with maintainers; [ onny ];
|
|
};
|
|
}
|