2023-10-15 01:53:57 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
2023-10-15 01:56:35 +00:00
|
|
|
, fetchFromGitHub
|
2023-10-15 01:53:57 +00:00
|
|
|
, cmake
|
|
|
|
, pkg-config
|
|
|
|
, boost
|
|
|
|
, immer
|
|
|
|
, zug
|
2023-10-15 01:56:35 +00:00
|
|
|
}:
|
|
|
|
|
2024-04-27 13:14:45 +00:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2023-10-15 01:56:35 +00:00
|
|
|
pname = "lager";
|
|
|
|
version = "0.1.0";
|
2024-04-27 13:14:45 +00:00
|
|
|
|
2023-10-15 01:56:35 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "arximboldi";
|
2023-10-15 01:53:57 +00:00
|
|
|
repo = "lager";
|
2024-04-27 13:14:45 +00:00
|
|
|
rev = "v${finalAttrs.version}";
|
2023-10-15 01:56:35 +00:00
|
|
|
hash = "sha256-KTHrVV/186l4klwlcfDwFsKVoOVqWCUPzHnIbWuatbg=";
|
|
|
|
};
|
2024-04-27 13:14:45 +00:00
|
|
|
|
2023-10-15 01:56:35 +00:00
|
|
|
buildInputs = [
|
|
|
|
boost
|
|
|
|
immer
|
|
|
|
zug
|
|
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
];
|
|
|
|
cmakeFlags = [
|
|
|
|
"-Dlager_BUILD_EXAMPLES=OFF"
|
|
|
|
];
|
2024-04-27 13:14:45 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = "https://github.com/arximboldi/lager";
|
2023-10-15 01:53:57 +00:00
|
|
|
description = "C++ library for value-oriented design using the unidirectional data-flow architecture — Redux for C++";
|
2024-04-27 13:14:45 +00:00
|
|
|
license = lib.licenses.mit;
|
|
|
|
maintainers = with lib.maintainers; [ nek0 ];
|
2023-10-15 01:56:35 +00:00
|
|
|
};
|
2024-04-27 13:14:45 +00:00
|
|
|
})
|