nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 22.05 34 lines 682 B view raw
1{ lib, stdenv 2, fetchFromGitHub 3, cmake 4}: 5 6stdenv.mkDerivation rec { 7 pname = "flatcc"; 8 version = "0.6.0"; 9 10 src = fetchFromGitHub { 11 owner = "dvidelabs"; 12 repo = "flatcc"; 13 rev = "v${version}"; 14 sha256 = "0cy79swgdbaf3zmsaqa6gz3b0fad2yqawwcnsipnpl9d8hn1linm"; 15 }; 16 17 nativeBuildInputs = [ cmake ]; 18 19 cmakeFlags = [ 20 "-DFLATCC_INSTALL=on" 21 "-DCMAKE_BUILD_TYPE=Release" 22 ]; 23 24 NIX_CFLAGS_COMPILE = [ 25 "-Wno-error=misleading-indentation" 26 "-Wno-error=stringop-overflow" 27 ]; 28 29 meta = { 30 description = "FlatBuffers Compiler and Library in C for C "; 31 homepage = "https://github.com/dvidelabs/flatcc"; 32 license = [ lib.licenses.asl20 ]; 33 }; 34}