lager: move to finalAttrs

explicitly use lib where needed
This commit is contained in:
John Titor 2024-04-27 18:44:45 +05:30
parent 07fcb5e223
commit ffe2d584e8
No known key found for this signature in database
GPG Key ID: 29B0514F4E3C1CC0

View File

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