1{ lib
2, stdenv
3, meson
4, cmake
5, ninja
6, fetchFromGitHub
7}:
8
9stdenv.mkDerivation (finalAttrs: {
10 pname = "tomlplusplus";
11 version = "3.4.0";
12
13 src = fetchFromGitHub {
14 owner = "marzer";
15 repo = "tomlplusplus";
16 rev = "v${finalAttrs.version}";
17 hash = "sha256-h5tbO0Rv2tZezY58yUbyRVpsfRjY3i+5TPkkxr6La8M=";
18 };
19
20 nativeBuildInputs = [ meson cmake ninja ];
21
22 meta = with lib; {
23 homepage = "https://github.com/marzer/tomlplusplus";
24 description = "Header-only TOML config file parser and serializer for C++17";
25 license = licenses.mit;
26 maintainers = with maintainers; [ Scrumplex ];
27 platforms = platforms.unix;
28 };
29})