about summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorPol Dellaiera <pol.dellaiera@protonmail.com>2023-12-26 22:34:19 +0100
committerGitHub <noreply@github.com>2023-12-26 22:34:19 +0100
commitcacf372fa697eaa7b8bd6c0b5d77f6c226b854bc (patch)
tree5b67cbb698431a4e1f9b02550911e6277494a620 /pkgs
parent719483f4a866418d5ef889adbe11553828167ce7 (diff)
parentf6b24b3b68df2694baff0680da6b69c1f8443cbc (diff)
downloadnixlib-cacf372fa697eaa7b8bd6c0b5d77f6c226b854bc.tar
nixlib-cacf372fa697eaa7b8bd6c0b5d77f6c226b854bc.tar.gz
nixlib-cacf372fa697eaa7b8bd6c0b5d77f6c226b854bc.tar.bz2
nixlib-cacf372fa697eaa7b8bd6c0b5d77f6c226b854bc.tar.lz
nixlib-cacf372fa697eaa7b8bd6c0b5d77f6c226b854bc.tar.xz
nixlib-cacf372fa697eaa7b8bd6c0b5d77f6c226b854bc.tar.zst
nixlib-cacf372fa697eaa7b8bd6c0b5d77f6c226b854bc.zip
Merge pull request #275224 from br337/nixos-unstable
nlohmann_json_schema_validator: init at 2.3.0
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/by-name/nl/nlohmann_json_schema_validator/package.nix30
1 files changed, 30 insertions, 0 deletions
diff --git a/pkgs/by-name/nl/nlohmann_json_schema_validator/package.nix b/pkgs/by-name/nl/nlohmann_json_schema_validator/package.nix
new file mode 100644
index 000000000000..a6317b1f7b28
--- /dev/null
+++ b/pkgs/by-name/nl/nlohmann_json_schema_validator/package.nix
@@ -0,0 +1,30 @@
+{ stdenv
+, lib
+, fetchFromGitHub
+, nlohmann_json
+, cmake
+}:
+stdenv.mkDerivation (finalAttrs: {
+  pname = "nlohmann_json_schema_validator";
+  version = "2.3.0";
+
+  outputs = [ "out" "dev" ];
+
+  src = fetchFromGitHub {
+    owner = "pboettch";
+    repo = "json-schema-validator";
+    rev = finalAttrs.version;
+    hash = "sha256-Ybr5dNmjBBPTYPvgorJ6t2+zvAjxYQISWXJmgUVHBVE=";
+  };
+
+  buildInputs = [ nlohmann_json ];
+  nativeBuildInputs = [ cmake ];
+
+  meta = {
+    description = "JSON schema validator for JSON for Modern C++";
+    homepage = "https://github.com/pboettch/json-schema-validator";
+    license = lib.licenses.mit;
+    maintainers = with lib.maintainers; [ br337 ];
+    platforms = lib.platforms.all;
+  };
+})