summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjade <software@lfcode.ca>2025-08-09 21:03:25 +0200
committerGitHub <noreply@github.com>2025-08-09 21:03:25 +0200
commit189292fe209223f774a9980968b597576cfc95fb (patch)
tree4d446728a37cfd61fe52614cbbd9e4656ec2d433
parentananicy-rules-cachyos: 0-unstable-2025-07-06 -> 0-unstable-2025-08-06 (diff)
parentlixPackageSets.git: 2.94.0-pre-20250704_362bfd827f52 -> 2.94.0-pre-20250807_8... (diff)
downloadnixpkgs-189292fe209223f774a9980968b597576cfc95fb.tar.gz
[Backport release-25.05] lixPackageSets.git: 2.94.0-pre-20250704_362bfd827f52 -> 2.94.0-pre-20250711_ae00b1298353 (#432256)
-rw-r--r--pkgs/by-name/ca/capnproto/package.nix2
-rw-r--r--pkgs/tools/package-management/lix/common-lix.nix31
-rw-r--r--pkgs/tools/package-management/lix/common-nix-eval-jobs.nix2
-rw-r--r--pkgs/tools/package-management/lix/default.nix8
4 files changed, 25 insertions, 18 deletions
diff --git a/pkgs/by-name/ca/capnproto/package.nix b/pkgs/by-name/ca/capnproto/package.nix
index fdfb91242503..59c8a631bc2b 100644
--- a/pkgs/by-name/ca/capnproto/package.nix
+++ b/pkgs/by-name/ca/capnproto/package.nix
@@ -45,7 +45,7 @@ clangStdenv.mkDerivation rec {
openssl
zlib
]
- ++ lib.optional (clangStdenv.cc.isClang && clangStdenv.targetPlatform.isStatic) empty-libgcc_eh;
+ ++ lib.optional (clangStdenv.cc.isClang && clangStdenv.hostPlatform.isStatic) empty-libgcc_eh;
# FIXME: separate the binaries from the stuff that user systems actually use
# This runs into a terrible UX issue in Lix and I just don't want to debug it
diff --git a/pkgs/tools/package-management/lix/common-lix.nix b/pkgs/tools/package-management/lix/common-lix.nix
index 5d11246f60c3..01f1dc974e62 100644
--- a/pkgs/tools/package-management/lix/common-lix.nix
+++ b/pkgs/tools/package-management/lix/common-lix.nix
@@ -57,7 +57,7 @@ assert lib.assertMsg (
rustc,
toml11,
pegtl,
- python3,
+ buildPackages,
pkg-config,
rapidcheck,
sqlite,
@@ -100,6 +100,7 @@ let
isLegacyParser = lib.versionOlder version "2.91";
hasDtraceSupport = lib.versionAtLeast version "2.93";
parseToYAML = lib.versionAtLeast version "2.93";
+ usesCapnp = lib.versionAtLeast version "2.94";
in
# gcc miscompiles coroutines at least until 13.2, possibly longer
# do not remove this check unless you are sure you (or your users) will not report bugs to Lix upstream about GCC miscompilations.
@@ -136,19 +137,25 @@ stdenv.mkDerivation (finalAttrs: {
nativeBuildInputs = [
# python3.withPackages does not splice properly, see https://github.com/NixOS/nixpkgs/issues/305858
- (python3.pythonOnBuildForHost.withPackages (p: [
- p.pytest
- p.pytest-xdist
- p.python-frontmatter
- p.toml
- ]))
+ (buildPackages.python3.withPackages (
+ p:
+ [
+ p.python-frontmatter
+ p.toml
+ ]
+ ++ lib.optionals finalAttrs.doInstallCheck [
+ p.aiohttp
+ p.pytest
+ p.pytest-xdist
+ ]
+ ++ lib.optionals usesCapnp [ p.pycapnp ]
+ ))
pkg-config
flex
jq
meson
ninja
cmake
- python3
# Required for libstd++ assertions that leaks inside of the final binary.
removeReferencesTo
@@ -173,6 +180,7 @@ stdenv.mkDerivation (finalAttrs: {
++ lib.optionals (hasDtraceSupport && withDtrace) [ systemtap-sdt ]
++ lib.optionals pastaFod [ passt ]
++ lib.optionals parseToYAML [ yq ]
+ ++ lib.optionals usesCapnp [ capnproto ]
++ lib.optionals stdenv.hostPlatform.isLinux [ util-linuxMinimal ];
buildInputs = [
@@ -228,7 +236,7 @@ stdenv.mkDerivation (finalAttrs: {
preConfigure =
# Copy libboost_context so we don't get all of Boost in our closure.
# https://github.com/NixOS/nixpkgs/issues/45462
- lib.optionalString (!enableStatic) ''
+ lib.optionalString (lib.versionOlder version "2.91" && !enableStatic) ''
mkdir -p $out/lib
cp -pd ${boost}/lib/{libboost_context*,libboost_thread*,libboost_system*} $out/lib
rm -f $out/lib/*.a
@@ -289,16 +297,15 @@ stdenv.mkDerivation (finalAttrs: {
mkdir -p $devdoc/nix-support
echo "devdoc internal-api $devdoc/share/doc/nix/internal-api" >> $devdoc/nix-support/hydra-build-products
''
- + lib.optionalString (!hasExternalLixDoc) ''
+ + lib.optionalString (lib.versionOlder version "2.94" && !hasExternalLixDoc) ''
# We do not need static archives.
- # FIXME(Raito): why are they getting installed _at all_ ?
rm $out/lib/liblix_doc.a
''
+ lib.optionalString stdenv.hostPlatform.isStatic ''
mkdir -p $out/nix-support
echo "file binary-dist $out/bin/nix" >> $out/nix-support/hydra-build-products
''
- + lib.optionalString stdenv.hostPlatform.isDarwin ''
+ + lib.optionalString (lib.versionOlder version "2.91" && stdenv.hostPlatform.isDarwin) ''
for lib in liblixutil.dylib liblixexpr.dylib; do
install_name_tool \
-change "${lib.getLib boost}/lib/libboost_context.dylib" \
diff --git a/pkgs/tools/package-management/lix/common-nix-eval-jobs.nix b/pkgs/tools/package-management/lix/common-nix-eval-jobs.nix
index 26fdc0e2706b..48b76ca7179b 100644
--- a/pkgs/tools/package-management/lix/common-nix-eval-jobs.nix
+++ b/pkgs/tools/package-management/lix/common-nix-eval-jobs.nix
@@ -65,6 +65,6 @@ stdenv.mkDerivation {
license = lib.licenses.gpl3;
teams = [ lib.teams.lix ];
platforms = lib.platforms.unix;
- broken = stdenv.hostPlatform.isStatic;
+ broken = lib.versionOlder version "2.94" && stdenv.hostPlatform.isStatic;
};
}
diff --git a/pkgs/tools/package-management/lix/default.nix b/pkgs/tools/package-management/lix/default.nix
index 52e9ceb4d457..9d4a568793fb 100644
--- a/pkgs/tools/package-management/lix/default.nix
+++ b/pkgs/tools/package-management/lix/default.nix
@@ -243,20 +243,20 @@ lib.makeExtensible (self: {
attrName = "git";
lix-args = rec {
- version = "2.94.0-pre-20250704_${builtins.substring 0 12 src.rev}";
+ version = "2.94.0-pre-20250807_${builtins.substring 0 12 src.rev}";
src = fetchFromGitea {
domain = "git.lix.systems";
owner = "lix-project";
repo = "lix";
- rev = "362bfd827f522b57062e4ebcb465bb51941632a4";
- hash = "sha256-4CVRbeYExqIDpFH+QMZb5IeUGkP6kA/zHSuExYoZygk=";
+ rev = "8bbd5e1d0df9c31b4d86ba07bc85beb952e42ccb";
+ hash = "sha256-P+WiN95OjCqHhfygglS/VOFTSj7qNdL5XQDo2wxhQqg=";
};
cargoDeps = rustPlatform.fetchCargoVendor {
name = "lix-${version}";
inherit src;
- hash = "sha256-YMyNOXdlx0I30SkcmdW/6DU0BYc3ZOa2FMJSKMkr7I8=";
+ hash = "sha256-APm8m6SVEAO17BBCka13u85/87Bj+LePP7Y3zHA3Mpg=";
};
};
};