lixPackageSets.git: 2.94.0-pre-20250912_d90e4a65812c -> 2.94.0-pre-20251001_f1ef994f120a
Now with toml11 ≥4 support.
This commit is contained in:
@@ -26,7 +26,6 @@ assert lib.assertMsg (
|
|||||||
boehmgc,
|
boehmgc,
|
||||||
boost,
|
boost,
|
||||||
brotli,
|
brotli,
|
||||||
busybox,
|
|
||||||
busybox-sandbox-shell,
|
busybox-sandbox-shell,
|
||||||
bzip2,
|
bzip2,
|
||||||
callPackage,
|
callPackage,
|
||||||
@@ -55,6 +54,7 @@ assert lib.assertMsg (
|
|||||||
nlohmann_json,
|
nlohmann_json,
|
||||||
ninja,
|
ninja,
|
||||||
openssl,
|
openssl,
|
||||||
|
pkgsStatic,
|
||||||
rustc,
|
rustc,
|
||||||
toml11,
|
toml11,
|
||||||
pegtl,
|
pegtl,
|
||||||
@@ -291,7 +291,7 @@ stdenv.mkDerivation (finalAttrs: {
|
|||||||
lib.optionals
|
lib.optionals
|
||||||
(stdenv.hostPlatform.isLinux && finalAttrs.doInstallCheck && lib.versionAtLeast version "2.94")
|
(stdenv.hostPlatform.isLinux && finalAttrs.doInstallCheck && lib.versionAtLeast version "2.94")
|
||||||
[
|
[
|
||||||
(lib.mesonOption "build-test-shell" "${busybox}/bin")
|
(lib.mesonOption "build-test-shell" "${pkgsStatic.busybox}/bin")
|
||||||
];
|
];
|
||||||
|
|
||||||
ninjaFlags = [ "-v" ];
|
ninjaFlags = [ "-v" ];
|
||||||
|
|||||||
@@ -57,7 +57,10 @@ let
|
|||||||
boehmgc =
|
boehmgc =
|
||||||
# TODO: Why is this called `boehmgc-nix_2_3`?
|
# TODO: Why is this called `boehmgc-nix_2_3`?
|
||||||
let
|
let
|
||||||
boehmgc-nix_2_3 = boehmgc.override { enableLargeConfig = true; };
|
boehmgc-nix_2_3 = boehmgc.override {
|
||||||
|
enableLargeConfig = true;
|
||||||
|
initialMarkStackSize = 1048576;
|
||||||
|
};
|
||||||
in
|
in
|
||||||
# Since Lix 2.91 does not use boost coroutines, it does not need boehmgc patches either.
|
# Since Lix 2.91 does not use boost coroutines, it does not need boehmgc patches either.
|
||||||
if lib.versionOlder lix-args.version "2.91" then
|
if lib.versionOlder lix-args.version "2.91" then
|
||||||
@@ -214,14 +217,14 @@ lib.makeExtensible (
|
|||||||
attrName = "git";
|
attrName = "git";
|
||||||
|
|
||||||
lix-args = rec {
|
lix-args = rec {
|
||||||
version = "2.94.0-pre-20250912_${builtins.substring 0 12 src.rev}";
|
version = "2.94.0-pre-20251001_${builtins.substring 0 12 src.rev}";
|
||||||
|
|
||||||
src = fetchFromGitea {
|
src = fetchFromGitea {
|
||||||
domain = "git.lix.systems";
|
domain = "git.lix.systems";
|
||||||
owner = "lix-project";
|
owner = "lix-project";
|
||||||
repo = "lix";
|
repo = "lix";
|
||||||
rev = "d90e4a65812c6d3dd90aed7e44941eba3215f876";
|
rev = "f1ef994f120a723839a6d837cc2b33914a30a4db";
|
||||||
hash = "sha256-rbf0ptj4BTSwsitKQu3FuaiJwhNDePGBeBJovm5HLdQ=";
|
hash = "sha256-Rmq98EchbKygPo+2g0nDsZ7QNMLe+loiMbflV5VKDzc=";
|
||||||
};
|
};
|
||||||
|
|
||||||
patches = [
|
patches = [
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ index 9d4b5e6abf..3e26773eac 100644
|
|||||||
);
|
);
|
||||||
} catch (std::exception & e) { // NOLINT(lix-foreign-exceptions) // TODO: toml::syntax_error
|
} catch (std::exception & e) { // NOLINT(lix-foreign-exceptions) // TODO: toml::syntax_error
|
||||||
diff --git a/meson.build b/meson.build
|
diff --git a/meson.build b/meson.build
|
||||||
index 7b229ccefb..d4a36eb285 100644
|
index bede78a647..a72016522e 100644
|
||||||
--- a/meson.build
|
--- a/meson.build
|
||||||
+++ b/meson.build
|
+++ b/meson.build
|
||||||
@@ -363,7 +363,10 @@
|
@@ -363,7 +363,10 @@
|
||||||
@@ -53,91 +53,28 @@ index 7b229ccefb..d4a36eb285 100644
|
|||||||
|
|
||||||
pegtl = dependency(
|
pegtl = dependency(
|
||||||
'pegtl',
|
'pegtl',
|
||||||
diff --git a/misc/toml11.nix b/misc/toml11.nix
|
|
||||||
deleted file mode 100644
|
|
||||||
index c53be3da1b..0000000000
|
|
||||||
--- a/misc/toml11.nix
|
|
||||||
+++ /dev/null
|
|
||||||
@@ -1,47 +0,0 @@
|
|
||||||
-{
|
|
||||||
- lib,
|
|
||||||
- stdenv,
|
|
||||||
- fetchFromGitHub,
|
|
||||||
- cmake,
|
|
||||||
-}:
|
|
||||||
-
|
|
||||||
-stdenv.mkDerivation (finalAttrs: {
|
|
||||||
- pname = "toml11";
|
|
||||||
- version = "4.4.0";
|
|
||||||
-
|
|
||||||
- src = fetchFromGitHub {
|
|
||||||
- owner = "ToruNiina";
|
|
||||||
- repo = "toml11";
|
|
||||||
- rev = "v${finalAttrs.version}";
|
|
||||||
- hash = "sha256-sgWKYxNT22nw376ttGsTdg0AMzOwp8QH3E8mx0BZJTQ=";
|
|
||||||
- };
|
|
||||||
-
|
|
||||||
- nativeBuildInputs = [
|
|
||||||
- cmake
|
|
||||||
- ];
|
|
||||||
-
|
|
||||||
- meta = with lib; {
|
|
||||||
- homepage = "https://github.com/ToruNiina/toml11";
|
|
||||||
- description = "TOML for Modern C++";
|
|
||||||
- longDescription = ''
|
|
||||||
- toml11 is a C++11 (or later) header-only toml parser/encoder depending
|
|
||||||
- only on C++ standard library.
|
|
||||||
-
|
|
||||||
- - It is compatible to the latest version of TOML v1.0.0.
|
|
||||||
- - It is one of the most TOML standard compliant libraries, tested with
|
|
||||||
- the language agnostic test suite for TOML parsers by BurntSushi.
|
|
||||||
- - It shows highly informative error messages.
|
|
||||||
- - It has configurable container. You can use any random-access containers
|
|
||||||
- and key-value maps as backend containers.
|
|
||||||
- - It optionally preserves comments without any overhead.
|
|
||||||
- - It has configurable serializer that supports comments, inline tables,
|
|
||||||
- literal strings and multiline strings.
|
|
||||||
- - It supports user-defined type conversion from/into toml values.
|
|
||||||
- - It correctly handles UTF-8 sequences, with or without BOM, both on posix
|
|
||||||
- and Windows.
|
|
||||||
- '';
|
|
||||||
- license = licenses.mit;
|
|
||||||
- maintainers = with maintainers; [ ];
|
|
||||||
- platforms = platforms.unix ++ platforms.windows;
|
|
||||||
- };
|
|
||||||
-})
|
|
||||||
diff --git a/package.nix b/package.nix
|
diff --git a/package.nix b/package.nix
|
||||||
index eb0e5c602a..c1c948ee7e 100644
|
index eb0e5c602a..9357b8ebd1 100644
|
||||||
--- a/package.nix
|
--- a/package.nix
|
||||||
+++ b/package.nix
|
+++ b/package.nix
|
||||||
@@ -55,8 +55,6 @@
|
@@ -57,7 +57,6 @@
|
||||||
rustc,
|
|
||||||
sqlite,
|
|
||||||
systemtap-lix ? __forDefaults.systemtap-lix,
|
systemtap-lix ? __forDefaults.systemtap-lix,
|
||||||
- # FIXME: remove default after dropping NixOS 25.05
|
# FIXME: remove default after dropping NixOS 25.05
|
||||||
- toml11-lix ? __forDefaults.toml11-lix,
|
toml11-lix ? __forDefaults.toml11-lix,
|
||||||
toml11,
|
- toml11,
|
||||||
util-linuxMinimal ? utillinuxMinimal,
|
util-linuxMinimal ? utillinuxMinimal,
|
||||||
utillinuxMinimal ? null,
|
utillinuxMinimal ? null,
|
||||||
@@ -117,9 +115,6 @@
|
xz,
|
||||||
build-release-notes = callPackage ./maintainers/build-release-notes.nix { };
|
@@ -118,8 +117,7 @@
|
||||||
|
|
||||||
passt-lix = callPackage ./misc/passt.nix { };
|
passt-lix = callPackage ./misc/passt.nix { };
|
||||||
-
|
|
||||||
- toml11-lix =
|
- toml11-lix =
|
||||||
- if lib.versionOlder toml11.version "4.4.0" then callPackage ./misc/toml11.nix { } else toml11;
|
- if lib.versionOlder toml11.version "4.4.0" then callPackage ./misc/toml11.nix { } else toml11;
|
||||||
|
+ toml11-lix = callPackage ./misc/toml11.nix { };
|
||||||
},
|
},
|
||||||
}:
|
}:
|
||||||
|
|
||||||
@@ -344,7 +339,7 @@
|
|
||||||
libarchive
|
|
||||||
boost
|
|
||||||
lowdown
|
|
||||||
- toml11-lix
|
|
||||||
+ toml11
|
|
||||||
pegtl
|
|
||||||
capnproto
|
|
||||||
dtrace-headers
|
|
||||||
diff --git a/tests/functional2/lang/fromTOML-overflowing/eval-fail-overflow.err.exp b/tests/functional2/lang/fromTOML-overflowing/eval-fail-overflow.err.exp
|
diff --git a/tests/functional2/lang/fromTOML-overflowing/eval-fail-overflow.err.exp b/tests/functional2/lang/fromTOML-overflowing/eval-fail-overflow.err.exp
|
||||||
deleted file mode 100644
|
deleted file mode 100644
|
||||||
index 0c90e85edf..0000000000
|
index 0c90e85edf..0000000000
|
||||||
@@ -176,17 +113,17 @@ index a287e18655..0000000000
|
|||||||
- 1 | attr = -9223372036854775809
|
- 1 | attr = -9223372036854775809
|
||||||
- | ^-- must be < 2^63
|
- | ^-- must be < 2^63
|
||||||
-
|
-
|
||||||
diff --git a/tests/functional2/lang/fromTOML-overflowing/eval-okay-overflow.out.exp b/tests/functional2/lang/fromTOML-overflowing/eval-okay-overflow.out.exp
|
diff --git a/tests/functional2/lang/fromTOML-overflowing/in-overflow.nix b/tests/functional2/lang/fromTOML-overflowing/in-overflow.nix
|
||||||
new file mode 100644
|
deleted file mode 100644
|
||||||
index 0000000000..e241ca9ba4
|
index 17f0448b3d..0000000000
|
||||||
--- /dev/null
|
--- a/tests/functional2/lang/fromTOML-overflowing/in-overflow.nix
|
||||||
+++ b/tests/functional2/lang/fromTOML-overflowing/eval-okay-overflow.out.exp
|
+++ /dev/null
|
||||||
@@ -0,0 +1,1 @@
|
@@ -1,1 +0,0 @@
|
||||||
+{ attr = 9223372036854775807; }
|
-builtins.fromTOML ''attr = 9223372036854775808''
|
||||||
diff --git a/tests/functional2/lang/fromTOML-overflowing/eval-okay-underflow.out.exp b/tests/functional2/lang/fromTOML-overflowing/eval-okay-underflow.out.exp
|
diff --git a/tests/functional2/lang/fromTOML-overflowing/in-underflow.nix b/tests/functional2/lang/fromTOML-overflowing/in-underflow.nix
|
||||||
new file mode 100644
|
deleted file mode 100644
|
||||||
index 0000000000..83b822591f
|
index 923fdf3545..0000000000
|
||||||
--- /dev/null
|
--- a/tests/functional2/lang/fromTOML-overflowing/in-underflow.nix
|
||||||
+++ b/tests/functional2/lang/fromTOML-overflowing/eval-okay-underflow.out.exp
|
+++ /dev/null
|
||||||
@@ -0,0 +1,1 @@
|
@@ -1,1 +0,0 @@
|
||||||
+{ attr = -9223372036854775808; }
|
-builtins.fromTOML ''attr = -9223372036854775809''
|
||||||
|
|||||||
Reference in New Issue
Block a user