39 lines
791 B
Nix
39 lines
791 B
Nix
{
|
|
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
|
|
|
outputs = { nixpkgs, ... }:
|
|
let
|
|
system = "x86_64-linux";
|
|
pkgs = nixpkgs.legacyPackages.${system};
|
|
in
|
|
{
|
|
devShells.${system}.default = pkgs.mkShell {
|
|
packages = with pkgs; [
|
|
# Original packages
|
|
httpie
|
|
node-red
|
|
# Rust toolchain
|
|
rustc
|
|
cargo
|
|
rust-analyzer
|
|
clippy
|
|
rustfmt
|
|
pkg-config
|
|
openssl
|
|
# MQTT
|
|
mosquitto
|
|
# protobuf
|
|
protobuf
|
|
protoc-gen-doc
|
|
buf
|
|
];
|
|
|
|
shellHook = ''
|
|
echo ">>> Environment loaded with Rust & Node-red"
|
|
cargo --version
|
|
rustc --version
|
|
'';
|
|
};
|
|
};
|
|
}
|