tony / oxwm

Branch: b419fcd
Switch branches/tags
master
tonybanters updated for scrolling with gestures, and size of windows in scrolling layout. b419fcd 2026-09-20
61 lines · 1.1 KB Raw Blame History
1 {
2 lib,
3 stdenv,
4 callPackage,
5 zig_0_16,
6 pkg-config,
7 libx11,
8 libxft,
9 libxinerama,
10 lua5_4,
11 freetype,
12 fontconfig,
13 libinput,
14 udev,
15 gitRev ? "unknown",
16 }:
17 stdenv.mkDerivation (finalAttrs: {
18 pname = "oxwm";
19 version = "${lib.substring 0 8 gitRev}";
20
21 src = ./.;
22
23 deps = callPackage ./build.zig.zon.nix {};
24
25 nativeBuildInputs = [zig_0_16.hook pkg-config];
26
27 buildInputs = [
28 libx11
29 libxinerama
30 libxft
31 lua5_4
32 freetype
33 fontconfig
34 libinput
35 udev
36 ];
37
38 postInstall = ''
39 install resources/oxwm.desktop -Dt $out/share/xsessions
40 install -Dm644 resources/oxwm.1 -t $out/share/man/man1
41 install -Dm644 templates/oxwm.lua -t $out/share/oxwm
42 '';
43
44 zigBuildFlags = [
45 "--system"
46 "${finalAttrs.deps}"
47 ];
48
49 # tests require a running X server
50 doCheck = false;
51
52 passthru.providedSessions = ["oxwm"];
53
54 meta = {
55 description = "Dynamic window manager written in Zig, inspired by dwm";
56 homepage = "https://github.com/tonybanters/oxwm";
57 license = lib.licenses.gpl3Only;
58 platforms = lib.platforms.linux;
59 mainProgram = "oxwm";
60 };
61 })