-
Notifications
You must be signed in to change notification settings - Fork 38
/
default.nix
51 lines (42 loc) · 997 Bytes
/
default.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
{
hyprland,
lib,
nix-gitignore,
keepDebugInfo,
stdenv ? (keepDebugInfo hyprland.stdenv),
cmake,
ninja,
pkg-config,
pango,
cairo,
debug ? false,
hlversion ? "git",
versionCheck ? true,
}: stdenv.mkDerivation {
pname = "hy3";
version = "hl${hlversion}${lib.optionalString debug "-debug"}";
src = nix-gitignore.gitignoreSource [] ./.;
nativeBuildInputs = [
cmake
ninja
pkg-config
];
buildInputs = [
hyprland.dev
pango
cairo
] ++ hyprland.buildInputs;
cmakeFlags = lib.optional (!versionCheck) "-DHY3_NO_VERSION_CHECK=ON";
cmakeBuildType = if debug
then "Debug"
else "RelWithDebInfo";
buildPhase = "ninjaBuildPhase";
enableParallelBuilding = true;
dontStrip = true;
meta = with lib; {
homepage = "https://github.com/outfoxxed/hy3";
description = "Hyprland plugin for an i3 like manual tiling layout";
license = licenses.gpl3;
platforms = platforms.linux;
};
}