commit fa35643a5cf7655f67d065ca1bfd6e51ca64fd48
parent 6a16dec857c147fe154b3b49a97e89193309c43c
Author: Bradley Gannon <bradley@bradleygannon.com>
Date: Tue, 1 Sep 2026 12:39:39 -0400
Add flake.nix
Diffstat:
| A | flake.lock | | | 27 | +++++++++++++++++++++++++++ |
| A | flake.nix | | | 36 | ++++++++++++++++++++++++++++++++++++ |
2 files changed, 63 insertions(+), 0 deletions(-)
diff --git a/flake.lock b/flake.lock
@@ -0,0 +1,27 @@
+{
+ "nodes": {
+ "root": {
+ "inputs": {
+ "stable-pkgs": "stable-pkgs"
+ }
+ },
+ "stable-pkgs": {
+ "locked": {
+ "lastModified": 1788187754,
+ "narHash": "sha256-bu1QxmXKmPuvBLN7bHP355OV9Qo13x9WCiRDH62CqRM=",
+ "owner": "nixos",
+ "repo": "nixpkgs",
+ "rev": "5dfba6236110080a54247d6460bc2ff5dda939cc",
+ "type": "github"
+ },
+ "original": {
+ "owner": "nixos",
+ "ref": "nixos-26.05",
+ "repo": "nixpkgs",
+ "type": "github"
+ }
+ }
+ },
+ "root": "root",
+ "version": 7
+}
diff --git a/flake.nix b/flake.nix
@@ -0,0 +1,36 @@
+{
+ inputs = {
+ stable-pkgs.url = "github:nixos/nixpkgs?ref=nixos-26.05";
+ };
+
+ outputs =
+ { self, stable-pkgs }:
+ let
+ system = "x86_64-linux";
+ stable = import stable-pkgs {
+ inherit system;
+ config = { };
+ overlays = [ ];
+ };
+ libInputs = [ ];
+ lib-path = with stable; lib.makeLibraryPath libInputs;
+ in
+ {
+ devShells.${system}.default = stable.mkShellNoCC {
+ packages = with stable; [
+ cargo
+ clippy
+ rust-analyzer
+ rustc
+ rustfmt
+ pkg-config
+ systemd
+ udev
+ ];
+
+ shellHook = ''
+ export "LD_LIBRARY_PATH=$LD_LIBRARY_PATH:${lib-path}"
+ '';
+ };
+ };
+}