| 1 | { lib |
| 2 | , rustPlatform |
| 3 | , pkg-config |
| 4 | , xorg |
| 5 | , freetype |
| 6 | , fontconfig |
| 7 | }: |
| 8 | |
| 9 | rustPlatform.buildRustPackage { |
| 10 | pname = "oxwm"; |
| 11 | version = "0.1.0"; |
| 12 | |
| 13 | src = ./.; |
| 14 | |
| 15 | cargoLock = { |
| 16 | lockFile = ./Cargo.lock; |
| 17 | }; |
| 18 | |
| 19 | nativeBuildInputs = [ |
| 20 | pkg-config |
| 21 | ]; |
| 22 | |
| 23 | buildInputs = [ |
| 24 | xorg.libX11 |
| 25 | xorg.libXft |
| 26 | xorg.libXrender |
| 27 | freetype |
| 28 | fontconfig |
| 29 | ]; |
| 30 | |
| 31 | meta = with lib; { |
| 32 | description = "A dynamic window manager written in Rust, inspired by dwm"; |
| 33 | homepage = "https://github.com/tonybanters/oxwm"; |
| 34 | license = licenses.gpl3; |
| 35 | maintainers = [ ]; |
| 36 | platforms = platforms.linux; |
| 37 | mainProgram = "oxwm"; |
| 38 | }; |
| 39 | } |