Conversation
This comment was marked as resolved.
This comment was marked as resolved.
3 tasks
timvisee
approved these changes
Aug 13, 2025
Member
timvisee
left a comment
There was a problem hiding this comment.
I don't have a Nix system to test this on. So I'm trusting you with this one. 🧐
IvanPleshkov
pushed a commit
that referenced
this pull request
Aug 14, 2025
* shell.nix: npins upgrade * shell.nix: bump to rust 1.89 * shell.nix: use rustup instead of fenix
timvisee
pushed a commit
that referenced
this pull request
Aug 14, 2025
* shell.nix: npins upgrade * shell.nix: bump to rust 1.89 * shell.nix: use rustup instead of fenix
Merged
|
@xzfc Unfortunately this broke building Qdrant on NixOS (ironically). and with a configured rust-up: |
Member
Author
|
@CyberShadow I've successfully built Qdrant on a fresh NixOS VM. VM config{ config, pkgs, ... }:
{
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
users.users.alice = {
isNormalUser = true;
extraGroups = [ "wheel" ];
initialPassword = "test";
};
environment.systemPackages = [ pkgs.git ];
virtualisation.vmVariant = {
virtualisation = {
cores = 4;
diskSize = 32 * 1024; # in MiB
memorySize = 8 * 1024; # in MiB
writableStoreUseTmpfs = false; # By default it's 2 GiB tmpfs which is not enough
};
};
system.stateVersion = "24.05";
}nix-build '<nixpkgs/nixos>' -A vm -I nixpkgs=channel:nixos-25.05 -I nixos-config=./conf.nix
LD_LIBRARY_PATH= QEMU_KERNEL_PARAMS=console=ttyS0 ./result/bin/run-nixos-vm -nographicRustup installed from nixpkgs should run patchelf on downloaded toolchains. E.g., in the said VM: $ file .rustup/toolchains/stable-x86_64-unknown-linux-gnu/bin/cargo
.rustup/toolchains/stable-x86_64-unknown-linux-gnu/bin/cargo: ELF 64-bit LSB pie executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /nix/store/g3s0z9r7m1lsfxdk8bj88nw8k8q3dmmg-glibc-2.40-66/lib/ld-linux-x86-64.so.2, for GNU/Linux 2.6.32, with debug_info, not strippedPerhaps in your case, the toolchain was either:
Try to delete the toolchain and let rustup to re-download it. |
|
Thanks! It was probably a PEBKAC, then. |
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR switches
shell.nixfrom usingfenix(which pins Rust versions) torustup(lets the user manage Rust versions), so I don't have to open a bump PR when new Rust releases.Also, update auto-generated
tools/nix/npins/default.nix.