Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 24.05-beta 35 lines 741 B view raw
1{ lib, stdenv 2, fetchFromGitHub 3, cmake 4}: 5 6stdenv.mkDerivation rec { 7 pname = "flatcc"; 8 version = "0.6.1"; 9 10 src = fetchFromGitHub { 11 owner = "dvidelabs"; 12 repo = "flatcc"; 13 rev = "v${version}"; 14 sha256 = "sha256-0/IZ7eX6b4PTnlSSdoOH0FsORGK9hrLr1zlr/IHsJFQ="; 15 }; 16 17 nativeBuildInputs = [ cmake ]; 18 19 cmakeFlags = [ 20 "-DFLATCC_INSTALL=on" 21 ]; 22 23 env.NIX_CFLAGS_COMPILE = toString [ 24 "-Wno-error=misleading-indentation" 25 "-Wno-error=stringop-overflow" 26 ]; 27 28 meta = with lib; { 29 description = "FlatBuffers Compiler and Library in C for C "; 30 mainProgram = "flatcc"; 31 homepage = "https://github.com/dvidelabs/flatcc"; 32 license = [ licenses.asl20 ]; 33 maintainers = with maintainers; [ onny ]; 34 }; 35}