nixpkgs/pkgs/by-name/la/lager/package.nix
Jeremy Stucki 708ef463a8
lager: fix build on darwin
The bazel configuration file `BUILD` conflicts with the build folder
that should be created. Its fine to just remove it since we are not
using bazel to build this package.
2024-11-23 12:48:13 +01:00

42 lines
787 B
Nix

{ lib
, stdenv
, fetchFromGitHub
, cmake
, boost
, immer
, zug
}:
stdenv.mkDerivation (finalAttrs: {
pname = "lager";
version = "0.1.0";
src = fetchFromGitHub {
owner = "arximboldi";
repo = "lager";
rev = "v${finalAttrs.version}";
hash = "sha256-KTHrVV/186l4klwlcfDwFsKVoOVqWCUPzHnIbWuatbg=";
};
buildInputs = [
boost
immer
zug
];
nativeBuildInputs = [
cmake
];
cmakeFlags = [
"-Dlager_BUILD_EXAMPLES=OFF"
];
preConfigure = ''
rm BUILD
'';
meta = {
homepage = "https://github.com/arximboldi/lager";
description = "C++ library for value-oriented design using the unidirectional data-flow architecture Redux for C++";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ nek0 ];
};
})