mirror of
https://github.com/Hopiu/lychee.git
synced 2026-04-25 15:34:45 +00:00
Specify Rust version explicitly
This commit is contained in:
parent
11ea168d7a
commit
772c869323
1 changed files with 14 additions and 10 deletions
24
flake.nix
24
flake.nix
|
|
@ -34,29 +34,33 @@
|
|||
};
|
||||
devShells.default =
|
||||
let
|
||||
rustVersion = "latest"; # using a specific version: "1.62.0"
|
||||
rust = pkgs.rust-bin.stable.${rustVersion}.default.override {
|
||||
extensions = [
|
||||
"rust-src" # for rust-analyzer
|
||||
"rust-analyzer" # usable by IDEs like zed-editor
|
||||
"clippy"
|
||||
];
|
||||
};
|
||||
libPath =
|
||||
with pkgs;
|
||||
lib.makeLibraryPath [
|
||||
pkg-config
|
||||
openssl
|
||||
];
|
||||
|
||||
in
|
||||
pkgs.mkShell {
|
||||
inputsFrom = builtins.attrValues self'.packages;
|
||||
packages = with pkgs; [
|
||||
# (rust-bin.selectLatestNightlyWith (toolchain: toolchain.default))
|
||||
pkg-config
|
||||
openssl
|
||||
cargo
|
||||
cargo-watch
|
||||
rustc
|
||||
rust-analyzer
|
||||
clippy
|
||||
packages = [
|
||||
pkgs.pkg-config
|
||||
pkgs.openssl
|
||||
rust
|
||||
];
|
||||
LD_LIBRARY_PATH = libPath;
|
||||
RUST_BACKTRACE = 1;
|
||||
LIBCLANG_PATH = "${pkgs.libclang.lib}/lib";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue