mirror of
https://github.com/Hopiu/lychee.git
synced 2026-04-09 07:50:59 +00:00
41 lines
930 B
Nix
41 lines
930 B
Nix
{
|
|
inputs = {
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
|
rust-overlay.url = "github:oxalica/rust-overlay";
|
|
};
|
|
|
|
outputs =
|
|
{
|
|
nixpkgs,
|
|
rust-overlay,
|
|
...
|
|
}:
|
|
let
|
|
system = "x86_64-linux";
|
|
pkgs = import nixpkgs {
|
|
inherit system;
|
|
overlays = [ (import rust-overlay) ];
|
|
};
|
|
in
|
|
{
|
|
devShells.${system}.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"
|
|
];
|
|
};
|
|
in
|
|
pkgs.mkShell {
|
|
packages = [
|
|
pkgs.pkg-config
|
|
pkgs.openssl
|
|
rust
|
|
];
|
|
RUST_BACKTRACE = 1;
|
|
};
|
|
};
|
|
}
|