oxwm

https://git.tonybtw.com/oxwm.git git://git.tonybtw.com/oxwm.git

reflect package change from nixpkgs

Commit
99e47a7741ea58c5e54c5335ec2c836ff7975415
Parent
d265668
Author
Sigmanificient <edhyjox@gmail.com>
Date
2025-12-14 18:42:48

Diff

diff --git a/default.nix b/default.nix
index 412b4ae..51969c2 100644
--- a/default.nix
+++ b/default.nix
@@ -2,7 +2,9 @@
   lib,
   rustPlatform,
   pkg-config,
-  xorg,
+  libX11,
+  libXft,
+  libXrender,
   freetype,
   fontconfig,
   gitRev ? "unkown",
@@ -13,22 +15,19 @@ rustPlatform.buildRustPackage (finalAttrs: {
 
   src = ./.;
 
-  cargoLock = {
-    lockFile = ./Cargo.lock;
-  };
+  cargoLock.lockFile = ./Cargo.lock;
 
-  nativeBuildInputs = [
-    pkg-config
-  ];
+  nativeBuildInputs = [pkg-config];
 
   buildInputs = [
-    xorg.libX11
-    xorg.libXft
-    xorg.libXrender
+    libX11
+    libXft
+    libXrender
     freetype
     fontconfig
   ];
 
+  # tests require a running X server
   doCheck = false;
 
   postInstall = ''
@@ -39,11 +38,11 @@ rustPlatform.buildRustPackage (finalAttrs: {
 
   passthru.providedSessions = ["oxwm"];
 
-  meta = with lib; {
-    description = "A dynamic window manager written in Rust, inspired by dwm";
+  meta = {
+    description = "Dynamic window manager written in Rust, inspired by dwm";
     homepage = "https://github.com/tonybanters/oxwm";
-    license = licenses.gpl3;
-    platforms = platforms.linux;
+    license = lib.licenses.gpl3Only;
+    platforms = lib.platforms.linux;
     mainProgram = "oxwm";
   };
 })