oxalica / nil

NIx Language server, an incremental analysis assistant for writing in Nix.
Apache License 2.0
1.38k stars 40 forks source link

error: package `ide v0.0.0 (/build/source/crates/ide)` cannot be built because it requires rustc 1.68 or newer, while the currently active rustc version is 1.67.1 #77

Closed I-Want-ToBelieve closed 1 year ago

I-Want-ToBelieve commented 1 year ago
devos on  main [!⇡] via ❄️  impure (latest-env) took 15s 
❯ sudo nixos-rebuild switch --flake .#k99-lite
[sudo] password for i.want.to.believe: 
trace: warning: rust-overlay's flake output `overlay` is deprecated in favor of `overlays.default` for Nix >= 2.7
building the system configuration...
trace: warning: rust-overlay's flake output `overlay` is deprecated in favor of `overlays.default` for Nix >= 2.7
warning: error: SQLite database '/nix/var/nix/db/db.sqlite' is busy
error: builder for '/nix/store/rbf4nlalkr5pvq36i2bx1x38ys6q3z86-nil-unstable-2023-04-29.drv' failed with exit code 101;
       last 10 log lines:
       > patching sources
       > Executing cargoSetupPostPatchHook
       > Validating consistency between /build/source/Cargo.lock and /build/cargo-vendor-dir/Cargo.lock
       > Finished cargoSetupPostPatchHook
       > configuring
       > building
       > Executing cargoBuildHook
       > ++ env CC_x86_64-unknown-linux-gnu=/nix/store/bfbp3ypd9nm3fapz634gvvs738blrl0y-gcc-wrapper-12.2.0/bin/cc CXX_x86_64-unknown-linux-gnu=/nix/store/bfbp3ypd9nm3fapz634gvvs738blrl0y-gcc-wrapper-12.2.0/bin/c++ CC_x86_64-unknown-linux-gnu=/nix/store/bfbp3ypd9nm3fapz634gvvs738blrl0y-gcc-wrapper-12.2.0/bin/cc CXX_x86_64-unknown-linux-gnu=/nix/store/bfbp3ypd9nm3fapz634gvvs738blrl0y-gcc-wrapper-12.2.0/bin/c++ cargo build -j 8 --target x86_64-unknown-linux-gnu --frozen --release
       > error: package `ide v0.0.0 (/build/source/crates/ide)` cannot be built because it requires rustc 1.68 or newer, while the currently active rustc version is 1.67.1
       >
       For full logs, run 'nix log /nix/store/rbf4nlalkr5pvq36i2bx1x38ys6q3z86-nil-unstable-2023-04-29.drv'.
error: 1 dependencies of derivation '/nix/store/gh7g88122w058h9ahz9hy5cbsgnhxwx4-helix-config.drv' failed to build
error: 1 dependencies of derivation '/nix/store/yplizdjkbrj0mcbcdsz1ymq3r29ca1gw-home-manager-files.drv' failed to build
error: 1 dependencies of derivation '/nix/store/3wkwd6ypi56z1qcx3fxfd1jwd2wdlcbc-home-manager-generation.drv' failed to build
error: 1 dependencies of derivation '/nix/store/5idwibcipxc02qm2dgkyj1a569zzwn9h-unit-home-manager-i.want.to.believe.service.drv' failed to build
error: 1 dependencies of derivation '/nix/store/g0la7qwbyv0ma9yznlj1ycpk4fipvb8v-system-units.drv' failed to build
error: 1 dependencies of derivation '/nix/store/z422k01kzz0773yjs69k0d9qm02jpjai-etc.drv' failed to build
error (ignored): error: cannot unlink '/tmp/nix-build-gconf-3.2.6.drv-0/GConf-3.2.6': Directory not empty
error: 1 dependencies of derivation '/nix/store/xrhaym9r8v5w4m4rqkx8aylnq45ybw4k-nixos-system-k99-lite-23.05.20230428.937a9d1.drv' failed to build

flake.nix

{
    rust-overlay = {
      url = "github:oxalica/rust-overlay";
      inputs.nixpkgs.follows = "nixpkgs";
    };

    nil = {
      url = "github:oxalica/nil";
      inputs.nixpkgs.follows = "nixpkgs";
      inputs.rust-overlay.follows = "rust-overlay";
    };
}
oxalica commented 1 year ago

Are you solved this by updating your nixpkgs?