mirror of
https://github.com/Hopiu/lychee.git
synced 2026-05-15 09:13:11 +00:00
Add Nix shell
This commit is contained in:
parent
a36bcf7f39
commit
9cca8e54a5
1 changed files with 27 additions and 0 deletions
27
shell.nix
Normal file
27
shell.nix
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
/*
|
||||
based on
|
||||
https://discourse.nixos.org/t/how-can-i-set-up-my-rust-programming-environment/4501/9
|
||||
*/
|
||||
let
|
||||
rust_overlay = import (builtins.fetchTarball "https://github.com/oxalica/rust-overlay/archive/master.tar.gz");
|
||||
pkgs = import <nixpkgs> { overlays = [ rust_overlay ]; };
|
||||
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
|
||||
];
|
||||
};
|
||||
in
|
||||
pkgs.mkShell {
|
||||
buildInputs = [
|
||||
rust
|
||||
] ++ (with pkgs; [
|
||||
pkg-config
|
||||
openssl
|
||||
# other dependencies
|
||||
#gtk3
|
||||
#wrapGAppsHook
|
||||
]);
|
||||
RUST_BACKTRACE = 1;
|
||||
}
|
||||
Loading…
Reference in a new issue