tony / oxwm

reflect package change from nixpkgs Browse files
Sigmanificient committed 2025-12-14 parent d265668 commit 99e47a7741ea58c5e54c5335ec2c836ff7975415
Showing 1 changed file with 13 additions and 14 deletions. UnifiedSplit
+13 −14 default.nix
@@ -2,7 +2,9 @@
2 lib, 2 lib,
3 rustPlatform, 3 rustPlatform,
4 pkg-config, 4 pkg-config,
5 - xorg, 5 + libX11,
6 + libXft,
7 + libXrender,
6 freetype, 8 freetype,
7 fontconfig, 9 fontconfig,
8 gitRev ? "unkown", 10 gitRev ? "unkown",
@@ -13,22 +15,19 @@ rustPlatform.buildRustPackage (finalAttrs: {
13 15
14 src = ./.; 16 src = ./.;
15 17
16 - cargoLock = { 18 + cargoLock.lockFile = ./Cargo.lock;
17 - lockFile = ./Cargo.lock;
18 - };
19 19
20 - nativeBuildInputs = [ 20 + nativeBuildInputs = [pkg-config];
21 - pkg-config
22 - ];
23 21
24 buildInputs = [ 22 buildInputs = [
25 - xorg.libX11 23 + libX11
26 - xorg.libXft 24 + libXft
27 - xorg.libXrender 25 + libXrender
28 freetype 26 freetype
29 fontconfig 27 fontconfig
30 ]; 28 ];
31 29
30 + # tests require a running X server
32 doCheck = false; 31 doCheck = false;
33 32
34 postInstall = '' 33 postInstall = ''
@@ -39,11 +38,11 @@ rustPlatform.buildRustPackage (finalAttrs: {
39 38
40 passthru.providedSessions = ["oxwm"]; 39 passthru.providedSessions = ["oxwm"];
41 40
42 - meta = with lib; { 41 + meta = {
43 - description = "A dynamic window manager written in Rust, inspired by dwm"; 42 + description = "Dynamic window manager written in Rust, inspired by dwm";
44 homepage = "https://github.com/tonybanters/oxwm"; 43 homepage = "https://github.com/tonybanters/oxwm";
45 - license = licenses.gpl3; 44 + license = lib.licenses.gpl3Only;
46 - platforms = platforms.linux; 45 + platforms = lib.platforms.linux;
47 mainProgram = "oxwm"; 46 mainProgram = "oxwm";
48 }; 47 };
49 }) 48 })