forked from djpohly/dwl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdwl.nix
51 lines (41 loc) · 925 Bytes
/
dwl.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
{ lib, pkgs, stdenv, wayland, conf ? null, inputs, ... }:
stdenv.mkDerivation (finalAttrs: {
pname = "dwl";
version = "unstable";
src = ./.;
dontStrip = true;
nativeBuildInputs = with pkgs; [
pkg-config
wayland-scanner
];
buildInputs = with pkgs; [
libinput
xorg.libxcb
libxkbcommon
pixman
wayland
wayland-protocols
wlroots
xorg.libX11
xorg.xcbutilwm
xwayland
xdg-desktop-portal
xdg-desktop-portal-wlr
xdg-desktop-portal-gtk
];
outputs = [ "out" "man" ];
makeFlags = [
"PKG_CONFIG=${stdenv.cc.targetPrefix}pkg-config"
"WAYLAND_SCANNER=wayland-scanner"
"PREFIX=$(out)"
"MANDIR=$(man)/share/man"
];
meta = {
homepage = "https://github.com/minego/dwl/";
description = "Dynamic window manager for Wayland";
license = lib.licenses.gpl3Only;
inherit (wayland.meta) platforms;
mainProgram = "dwl";
};
passthru.providedSessions = [ "dwl" ];
})