Files
nixpkgs/pkgs/by-name/fl/flatcc/package.nix

46 lines
976 B
Nix

{
lib,
stdenv,
fetchFromGitHub,
cmake,
versionCheckHook,
nix-update-script,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "flatcc";
version = "0.6.3";
__structuredAttrs = true;
strictDeps = true;
src = fetchFromGitHub {
owner = "dvidelabs";
repo = "flatcc";
tag = "v${finalAttrs.version}";
hash = "sha256-kDZ05r/k15peBLGG2jzyeKwrdTn3+1PWrrDUmC3SV50=";
};
nativeBuildInputs = [ cmake ];
cmakeFlags = [
(lib.cmakeBool "FLATCC_INSTALL" true)
];
nativeInstallCheckInputs = [
versionCheckHook
];
doInstallCheck = true;
passthru.updateScript = nix-update-script { };
meta = {
description = "FlatBuffers Compiler and Library in C for C";
mainProgram = "flatcc";
homepage = "https://github.com/dvidelabs/flatcc";
changelog = "https://github.com/dvidelabs/flatcc/blob/${finalAttrs.src.tag}/CHANGELOG.md";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ onny ];
};
})