Commit Graph

33 Commits

Author SHA1 Message Date
Sergei Trofimovich
3daf489719 nlohmann_json: backport gcc-13 fix
Without the change `nlohmann_json` build on `gcc-13 `fails as:

    In file included from <<NIX>>-gcc-13.0.0/include/c++/13.0.0/ext/alloc_traits.h:34,
                     from <<NIX>>-gcc-13.0.0/include/c++/13.0.0/bits/basic_string.h:39,
                     from <<NIX>>-gcc-13.0.0/include/c++/13.0.0/string:54,
                     from <<NIX>>-gcc-13.0.0/include/c++/13.0.0/bits/locale_classes.h:40,
                     from <<NIX>>-gcc-13.0.0/include/c++/13.0.0/locale:41,
                     from tests/src/unit-regression2.cpp:19:
    <<NIX>>-gcc-13.0.0/include/c++/13.0.0/bits/alloc_traits.h: In instantiation of 'struct std::__allocator_traits_base::__rebind<my_allocator<unsigned char>, unsigned char, void>':
    <<NIX>>-gcc-13.0.0/include/c++/13.0.0/bits/alloc_traits.h:94:11:   required by substitution of 'template<class _Alloc, class _Up> using std::__alloc_rebind = typename std::__allocator_traits_base::__rebind<_Alloc, _Up>::type [with _Alloc = my_allocator<unsigned char>; _Up = unsigned char]'
    <<NIX>>-gcc-13.0.0/include/c++/13.0.0/bits/alloc_traits.h:228:8:   required by substitution of 'template<class _Alloc> template<class _Tp> using std::allocator_traits< <template-parameter-1-1> >::rebind_alloc = std::__alloc_rebind<_Alloc, _Tp> [with _Tp = unsigned char; _Alloc = my_allocator<unsigned char>]'
    <<NIX>>-gcc-13.0.0/include/c++/13.0.0/ext/alloc_traits.h:126:65:   required from 'struct __gnu_cxx::__alloc_traits<my_allocator<unsigned char>, unsigned char>::rebind<unsigned char>'
    <<NIX>>-gcc-13.0.0/include/c++/13.0.0/bits/stl_vector.h:88:21:   required from 'struct std::_Vector_base<unsigned char, my_allocator<unsigned char> >'
    <<NIX>>-gcc-13.0.0/include/c++/13.0.0/bits/stl_vector.h:423:11:   required from 'class std::vector<unsigned char, my_allocator<unsigned char> >'
    tests/src/unit-regression2.cpp:807:63:   required from here
    <<NIX>>-gcc-13.0.0/include/c++/13.0.0/bits/alloc_traits.h:70:31: error: static assertion failed: allocator_traits<A>::rebind_alloc<A::value_type> must be A
       70 |                         _Tp>::value,
          |                               ^~~~~
2023-05-29 22:09:32 +01:00
Madoura
182c974f57
nlohmann_json: Enable JSON_FastTests, use JSON_BuildTests instead of BuildTests 2022-11-25 10:40:27 -06:00
Nikolay Korotkiy
966d9b95e5
nlohmann_json: 3.10.5 → 3.11.2 2022-11-12 13:34:51 +03:00
Adam Joseph
5a02dc8ee8 nlohmann_json: allow overrides by eliminating use of rec
The existing nlohmann_json expression prevents users from overriding
fields (like `doCheck`) because it uses `rec` in the argument to
`mkDerivation`.  Let's use the shiny new
pass-a-function-to-`mkDerivation` feature to do the same thing without
blocking overrides.
2022-07-15 15:53:01 -07:00
Markus S. Wamser
1dfba65a22 nlohmann_json: 3.10.2 -> 3.10.5 2022-05-15 23:36:25 +02:00
Shamrock Lee
1172c99c50 nlohmann_json: enable checkPhase 2021-09-15 11:19:01 +08:00
Shamrock Lee
18bd22822c nlohmann_json: update meta information
Update meta.description and meta.homepage to match the GitHub About.
Add meta.changelog
2021-09-12 19:35:44 +08:00
Shamrock Lee
d9f78e95ba nlohmann_json: 3.9.1 -> 3.10.2 2021-09-08 02:35:22 +08:00
Doron Behar
b2e4ab5d30 nlohmann_json: apply patch for pkg-config path 2021-03-30 01:05:42 +03:00
Ben Siraphob
66e44425c6 pkgs/development/libraries: stdenv.lib -> lib 2021-01-21 19:11:02 -08:00
Ben Siraphob
3ae5e6ce03 treewide: remove enableParallelBuilding = true if using cmake 2021-01-03 18:37:40 +07:00
Cole Mickens
bf437947b3
nlohmann_json: 3.7.3 -> 3.9.1 2020-09-05 14:58:02 -07:00
Michael Reilly
84cf00f980
treewide: Per RFC45, remove all unquoted URLs 2020-04-10 17:54:53 +01:00
R. RyanTM
1dd63ad320 nlohmann_json: 3.7.0 -> 3.7.3 2019-11-28 07:00:48 -08:00
davidak
7456f19b40 nlohmann_json: disable tests for now since they timeout 2019-11-06 20:12:11 +01:00
Eelco Dolstra
e89e0385c1 nlohmann_json: 3.6.1 -> 3.7.0
Also install multiple headers (in particular to get json_fwd.hpp,
which Nix needs).
2019-10-23 00:24:25 +02:00
Will Dietz
6bfe325ac6 nlohmann_json: 3.6.0 -> 3.6.1
https://github.com/nlohmann/json/releases/tag/v3.6.1
2019-03-20 15:16:38 -05:00
Will Dietz
5b30801441 nlohmann_json: 3.5.0 -> 3.6.0
https://github.com/nlohmann/json/releases/tag/v3.6.0
2019-03-20 09:50:25 -05:00
Will Dietz
fb60aedd7c nlohmann_json: 3.4.0 -> 3.5.0
https://github.com/nlohmann/json/releases/tag/v3.5.0
2018-12-21 22:58:17 -06:00
Will Dietz
a06fde5e24 nlohmann_json: 3.3.0 -> 3.4.0
https://github.com/nlohmann/json/releases/tag/v3.4.0
2018-11-01 11:07:56 -05:00
Matthew Bauer
51e5f8af42 treewide: don’t set CMAKE_SYSTEM_NAME 2018-10-16 21:52:38 -05:00
R. RyanTM
691eaabff7 nlohmann_json: 3.2.0 -> 3.3.0
Semi-automatic update generated by
https://github.com/ryantm/nixpkgs-update tools. This update was made
based on information from
https://repology.org/metapackage/nlohmann_json/versions
2018-10-14 04:14:46 -07:00
John Ericson
0828e2d8c3 treewide: Remove usage of remaining redundant platform compatability stuff
Want to get this out of here for 18.09, so it can be deprecated
thereafter.
2018-08-30 17:20:32 -04:00
R. RyanTM
702fa7a717 nlohmann_json: 3.1.2 -> 3.2.0 (#45559)
Semi-automatic update generated by
https://github.com/ryantm/nixpkgs-update tools. This update was made
based on information from
https://repology.org/metapackage/nlohmann_json/versions.
2018-08-24 18:27:29 +02:00
Jan Malakhovski
0317cc0525 nlohmann_json: cleanup tests 2018-08-10 12:56:34 +00:00
John Ericson
40c33cbd4e nlohmann_json: No more crossAttrs 2018-07-24 17:25:40 -04:00
Ryan Mulligan
6c3855038a nlohmann_json: 3.1.1 -> 3.1.2
Semi-automatic update generated by https://github.com/ryantm/nix-update tools. These checks were done:

- built on NixOS
- Warning: no binary found that responded to help or version flags. (This warning appears even if the package isn't expected to have binaries.)
- found 3.1.2 with grep in /nix/store/ak7p93w4pkmjvx5fi82fg40rra5z6g44-nlohmann_json-3.1.2
- directory tree listing: https://gist.github.com/cebf8a5968a9c2ae65ec58227044fcad
2018-03-22 17:45:10 -07:00
Ryan Mulligan
f9c9068120 nlohmann_json: 2.1.0 -> 3.1.1
Semi-automatic update. These checks were performed:

- built on NixOS
- found 3.1.1 with grep in /nix/store/4pydihqzddnsfmlc2zcn6qlwi7m2p1k1-nlohmann_json-3.1.1
- found 3.1.1 in filename of file in /nix/store/4pydihqzddnsfmlc2zcn6qlwi7m2p1k1-nlohmann_json-3.1.1
2018-02-27 08:10:05 -08:00
hsloan
51856df2a1 nlohmann_json: Don't use stdenv.cross 2017-06-28 19:41:22 -04:00
Franz Pletz
2a63aae299
nlohmann_json: 2.0.7 -> 2.1.0 2017-02-02 11:13:04 +01:00
Eelco Dolstra
674eb5ddf0 nlohmann_json: 2.0.3 -> 2.0.7 2016-11-10 17:52:25 +01:00
Remy Goldschmidt
854d16d74e nlohmann_json: 2.0.2 -> 2.0.3
`cmake` should be in `nativeBuildInputs` as it is only required at build time. For obvious reasons we can't have the tests running during a cross-compile. I figured I'd update the package version while I was at it, though these changes have also been tested independently of the version update.
2016-09-02 17:23:46 -05:00
Josef Kemetmueller
54748c1e3f nlohmann_json: init at 2.0.2
A header only C++ library for modern JSON.
2016-08-04 23:34:23 +02:00