This commit is contained in:
Cilly Leang 2026-06-23 01:35:22 +10:00
commit 41042ecbb0
Signed by: cilly
GPG key ID: 6500251E087653C9
7 changed files with 1576 additions and 0 deletions

29
flake.nix Normal file
View file

@ -0,0 +1,29 @@
{
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
];
};
};
}