forked from MagmaWM/MagmaWM
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmagmawm.nix
52 lines (46 loc) · 1.16 KB
/
magmawm.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
52
{ lib
, pkgs
, version
, ...
}:
pkgs.rustPlatform.buildRustPackage {
inherit version;
pname = "magmawm";
src = lib.cleanSource ./.;
buildInputs = with pkgs; [
libdrm
libglvnd
libinput
libseat
libxkbcommon
mesa
pkg-config
systemdLibs # Contains libudev. DON'T PANIC: it won't install the whole init system
wayland
wayland-scanner
xorg.libX11 # Needed for xwayland to work
xorg.libXcursor
xorg.libXi
];
nativeBuildInputs = with pkgs; [
makeWrapper
pkg-config
];
cargoLock = {
lockFile = ./Cargo.lock;
outputHashes = {
"smithay-0.3.0" = "sha256-vSzh+qddlJTlclFEyepzjeVeo3WKS9lUysNHr7C2bW0=";
"smithay-drm-extras-0.1.0" = "sha256-2DrVZ4FiCmAr3DlUfnlb4c1tkcG8ydVHYMG5FUvCTrI=";
"smithay-egui-0.1.0" = "sha256-FcSoKCwYk3okwQURiQlDUcfk9m/Ne6pSblGAzHDaVHg=";
};
};
postInstall = ''
wrapProgram $out/bin/magmawm --prefix LD_LIBRARY_PATH : "${pkgs.libglvnd}/lib"
'';
meta = {
description = "A versatile and customizable Window Manager and Wayland Compositor";
homepage = "https://magmawm.org/";
license = lib.licenses.mit;
mainProgram = "magmawm";
};
}