flake.nix (823B)
1 { 2 inputs = { 3 stable-pkgs.url = "github:nixos/nixpkgs?ref=nixos-26.05"; 4 }; 5 6 outputs = 7 { self, stable-pkgs }: 8 let 9 system = "x86_64-linux"; 10 stable = import stable-pkgs { 11 inherit system; 12 config = { }; 13 overlays = [ ]; 14 }; 15 libInputs = with stable; [ 16 libX11 17 libxkbcommon 18 libXi 19 libXcursor 20 libXrandr 21 libXxf86vm 22 libGL 23 ]; 24 lib-path = with stable; lib.makeLibraryPath libInputs; 25 in 26 { 27 devShells.${system}.default = stable.mkShellNoCC { 28 packages = with stable; [ 29 cargo 30 clippy 31 rust-analyzer 32 rustc 33 rustfmt 34 ]; 35 36 shellHook = '' 37 export "LD_LIBRARY_PATH=$LD_LIBRARY_PATH:${lib-path}" 38 ''; 39 }; 40 }; 41 }