tony / oxwm

Branch: 297a79e
Switch branches/tags
master
emzywastaken set `RUST_SRC_PATH` in devshell for rust-analyzer 297a79e 2025-09-24
30 lines · 590 B Raw Blame History
1 {
2 description = "oxwm devshell";
3
4 inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.05";
5
6 outputs = {
7 self,
8 nixpkgs,
9 }: let
10 system = "x86_64-linux";
11 pkgs = import nixpkgs {inherit system;};
12 in {
13 devShells.${system}.default = pkgs.mkShell {
14 buildInputs = [
15 pkgs.rustc
16 pkgs.cargo
17 pkgs.xorg.xorgserver
18 pkgs.xterm
19 pkgs.just
20 ];
21 shellHook = ''
22 export PS1="(oxwm-dev) $PS1"
23 '';
24
25 RUST_SRC_PATH = "${pkgs.rustPlatform.rustLibSrc}";
26 };
27
28 formatter.${system} = pkgs.alejandra;
29 };
30 }