Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pkgs/by-name/ca/capnproto/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
31 changes: 19 additions & 12 deletions pkgs/tools/package-management/lix/common-lix.nix
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ assert lib.assertMsg (
rustc,
toml11,
pegtl,
python3,
buildPackages,
pkg-config,
rapidcheck,
sqlite,
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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

Expand All @@ -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 = [
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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" \
Expand Down
2 changes: 1 addition & 1 deletion pkgs/tools/package-management/lix/common-nix-eval-jobs.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};
}
8 changes: 4 additions & 4 deletions pkgs/tools/package-management/lix/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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=";
};
};
};
Expand Down
Loading