29 lines
694 B
Nix
29 lines
694 B
Nix
{
|
|
description = "nix dev environment";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "github:NixOS/nixpkgs/64c08a7ca051951c8eae34e3e3cb1e202fe36786";
|
|
|
|
rust-overlay.url = "github:oxalica/rust-overlay";
|
|
rust-overlay.inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
|
|
outputs = { nixpkgs, rust-overlay, ... }:
|
|
let
|
|
system = "x86_64-linux";
|
|
pkgs = import nixpkgs {
|
|
inherit system;
|
|
overlays = [ (import rust-overlay) ];
|
|
};
|
|
toolchain = pkgs.rust-bin.fromRustupToolchain { channel = "nightly-2026-06-08"; };
|
|
in {
|
|
devShells.${system}.default = pkgs.mkShell {
|
|
packages = with pkgs; [
|
|
pkg-config
|
|
openssl
|
|
toolchain
|
|
udev
|
|
];
|
|
};
|
|
};
|
|
}
|