tony / oxwm

Branch: 241576b
Switch branches/tags
master
emzywastaken chore(nix): update xorg packages references 23bd58b 2026-02-18
49 lines · 943 B Raw Blame History
1 {
2 lib,
3 stdenv,
4 zig,
5 pkg-config,
6 libx11,
7 libxft,
8 libxinerama,
9 lua5_4,
10 freetype,
11 fontconfig,
12 gitRev ? "unknown",
13 }:
14 stdenv.mkDerivation (finalAttrs: {
15 pname = "oxwm";
16 version = "${lib.substring 0 8 gitRev}";
17
18 src = ./.;
19
20 nativeBuildInputs = [zig.hook pkg-config];
21
22 buildInputs = [
23 libx11
24 libxinerama
25 libxft
26 lua5_4
27 freetype
28 fontconfig
29 ];
30
31 postInstall = ''
32 install resources/oxwm.desktop -Dt $out/share/xsessions
33 install -Dm644 resources/oxwm.1 -t $out/share/man/man1
34 install -Dm644 templates/oxwm.lua -t $out/share/oxwm
35 '';
36
37 # tests require a running X server
38 doCheck = false;
39
40 passthru.providedSessions = ["oxwm"];
41
42 meta = {
43 description = "Dynamic window manager written in Zig, inspired by dwm";
44 homepage = "https://github.com/tonybanters/oxwm";
45 license = lib.licenses.gpl3Only;
46 platforms = lib.platforms.linux;
47 mainProgram = "oxwm";
48 };
49 })