about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/libraries/tomlplusplus
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/development/libraries/tomlplusplus')
-rw-r--r--nixpkgs/pkgs/development/libraries/tomlplusplus/default.nix29
1 files changed, 29 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/libraries/tomlplusplus/default.nix b/nixpkgs/pkgs/development/libraries/tomlplusplus/default.nix
new file mode 100644
index 000000000000..a865f88f707d
--- /dev/null
+++ b/nixpkgs/pkgs/development/libraries/tomlplusplus/default.nix
@@ -0,0 +1,29 @@
+{ lib
+, stdenv
+, meson
+, cmake
+, ninja
+, fetchFromGitHub
+}:
+
+stdenv.mkDerivation rec {
+  pname = "tomlplusplus";
+  version = "3.3.0";
+
+  src = fetchFromGitHub {
+    owner = "marzer";
+    repo = pname;
+    rev = "v${version}";
+    hash = "sha256-INX8TOEumz4B5coSxhiV7opc3rYJuQXT2k1BJ3Aje1M=";
+  };
+
+  nativeBuildInputs = [ meson cmake ninja ];
+
+  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;
+  };
+}