2022-10-21 18:38:19 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, meson
|
2023-03-04 12:14:45 +00:00
|
|
|
, cmake
|
2022-10-21 18:38:19 +00:00
|
|
|
, ninja
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "tomlplusplus";
|
2023-03-04 12:14:45 +00:00
|
|
|
version = "3.3.0";
|
2022-10-21 18:38:19 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "marzer";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2023-03-04 12:14:45 +00:00
|
|
|
hash = "sha256-INX8TOEumz4B5coSxhiV7opc3rYJuQXT2k1BJ3Aje1M=";
|
2022-10-21 18:38:19 +00:00
|
|
|
};
|
|
|
|
|
2023-03-04 12:14:45 +00:00
|
|
|
nativeBuildInputs = [ meson cmake ninja ];
|
2022-10-21 18:38:19 +00:00
|
|
|
|
|
|
|
meta = with lib;{
|
|
|
|
homepage = "https://github.com/marzer/tomlplusplus";
|
|
|
|
description = "Header-only TOML config file parser and serializer for C++17";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ Scrumplex ];
|
|
|
|
platforms = with platforms; unix;
|
|
|
|
};
|
|
|
|
}
|