about summary refs log tree commit diff
path: root/pkgs/development/libraries/tomlcpp
diff options
context:
space:
mode:
authorAndersonTorres <torres.anderson.85@protonmail.com>2022-04-14 12:59:07 -0300
committerAndersonTorres <torres.anderson.85@protonmail.com>2022-04-14 12:59:07 -0300
commit8d9d486be20103e3e40d415d733e54649ca27e7e (patch)
treecd6a8841477a42744f36a5277cbb4edde4ed4eb7 /pkgs/development/libraries/tomlcpp
parentebad91bd17ee0443629c4a12ecf878ae41cdbb3b (diff)
tomlcpp: init at 0.pre+date=2022-05-01
Diffstat (limited to 'pkgs/development/libraries/tomlcpp')
-rw-r--r--pkgs/development/libraries/tomlcpp/0001-missing-headers.diff15
-rw-r--r--pkgs/development/libraries/tomlcpp/default.nix35
2 files changed, 50 insertions, 0 deletions
diff --git a/pkgs/development/libraries/tomlcpp/0001-missing-headers.diff b/pkgs/development/libraries/tomlcpp/0001-missing-headers.diff
new file mode 100644
index 0000000000000..3559facf3b54b
--- /dev/null
+++ b/pkgs/development/libraries/tomlcpp/0001-missing-headers.diff
@@ -0,0 +1,15 @@
+diff -Naur old-source/tomlcpp.hpp new-source/tomlcpp.hpp
+--- tomlcpp/tomlcpp.hpp	1969-12-31 21:00:01.000000000 -0300
++++ tomlcpp/tomlcpp.hpp	2022-04-14 12:50:14.269775437 -0300
+@@ -25,6 +25,11 @@
+ #ifndef TOML_HPP
+ #define TOML_HPP
+ 
++#include <memory>
++#include <string>
++#include <utility>
++#include <vector>
++
+ struct toml_table_t;
+ struct toml_array_t;
+ 
diff --git a/pkgs/development/libraries/tomlcpp/default.nix b/pkgs/development/libraries/tomlcpp/default.nix
new file mode 100644
index 0000000000000..96559f04541ba
--- /dev/null
+++ b/pkgs/development/libraries/tomlcpp/default.nix
@@ -0,0 +1,35 @@
+{ lib
+, stdenv
+, fetchFromGitHub
+}:
+
+stdenv.mkDerivation rec {
+  pname = "tomlcpp";
+  version = "0.pre+date=2022-05-01";
+
+  src = fetchFromGitHub {
+    owner = "cktan";
+    repo = pname;
+    rev = "59fcc6dc89fb3f4130a2865e41e1fa5b8c502e45";
+    hash = "sha256-Uc6R5KnGIZXY0EJgFM4Xi7Jtxcu6l8yGh5xgFZPoJDM=";
+  };
+
+  patches = [
+    # Self-explaining
+    ./0001-missing-headers.diff
+  ];
+
+  dontConfigure = true;
+
+  installFlags = [
+    "prefix=${placeholder "out"}"
+  ];
+
+  meta = with lib;{
+    homepage = "https://github.com/cktan/tomlcpp";
+    description = "No fanfare TOML C++ Library";
+    license = licenses.mit;
+    maintainers = with maintainers; [ AndersonTorres ];
+    platforms = with platforms; unix;
+  };
+}