- create project directory
- create
.envrc - create
shell.nix - Done
Thanks
| use nix |
| # See docs/cross_compilation.md for details. | |
| ( import <nixpkgs> { | |
| overlays = [ (import (builtins.fetchTarball "https://github.com/oxalica/rust-overlay/archive/master.tar.gz")) ]; | |
| }).callPackage ( | |
| { mkShell, stdenv, rust-bin, pkg-config, openssl, qemu }: | |
| mkShell { | |
| nativeBuildInputs = [ | |
| rust-bin.stable.latest.minimal | |
| pkg-config | |
| ]; | |
| buildInputs = [ openssl ]; | |
| }) {} |