oxwm

https://git.tonybtw.com/oxwm.git git://git.tonybtw.com/oxwm.git
742 bytes raw
1
{
2
  lib,
3
  rustPlatform,
4
  pkg-config,
5
  xorg,
6
  freetype,
7
  fontconfig,
8
}:
9
rustPlatform.buildRustPackage (finalAttrs: {
10
  pname = "oxwm";
11
  version = "0.4.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
  postInstall = ''
32
    install oxwm.desktop -Dt $out/share/xsessions
33
  '';
34
35
  passthru.providedSessions = ["oxwm"];
36
37
  meta = with lib; {
38
    description = "A dynamic window manager written in Rust, inspired by dwm";
39
    homepage = "https://github.com/tonybanters/oxwm";
40
    license = licenses.gpl3;
41
    platforms = platforms.linux;
42
    mainProgram = "oxwm";
43
  };
44
})