2023-11-02 02:13:49 +00:00
|
|
|
{
|
|
|
|
description = "Basic Rust project";
|
|
|
|
inputs.nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
2024-04-13 13:03:44 +00:00
|
|
|
outputs =
|
|
|
|
{ self, nixpkgs }:
|
2023-11-02 02:13:49 +00:00
|
|
|
let
|
|
|
|
forAllSystems = nixpkgs.lib.genAttrs [
|
|
|
|
"x86_64-linux"
|
|
|
|
"x86_64-darwin"
|
|
|
|
"aarch64-linux"
|
|
|
|
"aarch64-darwin"
|
|
|
|
];
|
2024-04-13 13:03:44 +00:00
|
|
|
in
|
|
|
|
{
|
|
|
|
devShells = forAllSystems (
|
|
|
|
system:
|
|
|
|
let
|
|
|
|
pkgs = import nixpkgs { inherit system; };
|
|
|
|
in
|
|
|
|
{
|
2023-11-17 02:19:45 +00:00
|
|
|
default = pkgs.mkShell {
|
|
|
|
buildInputs = with pkgs; [
|
|
|
|
gcc
|
|
|
|
rustc
|
|
|
|
cargo
|
|
|
|
cargo-watch
|
|
|
|
rustfmt
|
|
|
|
pkg-config
|
|
|
|
openssl
|
|
|
|
];
|
|
|
|
};
|
2024-04-13 13:03:44 +00:00
|
|
|
}
|
|
|
|
);
|
2023-11-02 02:13:49 +00:00
|
|
|
};
|
|
|
|
}
|