hyprland-plugins/hyprbars/default.nix

40 lines
579 B
Nix
Raw Normal View History

2023-03-29 09:57:23 +02:00
{
stdenv,
hyprland,
pkg-config,
pixman,
libdrm,
wlroots,
}:
stdenv.mkDerivation {
name = "hyprbars";
src = ./.;
preConfigure = "rm Makefile";
nativeBuildInputs = [
pkg-config
];
buildInputs = [
pixman
libdrm
wlroots
];
buildPhase = ''
trap "set +x" err
set -xeu
$CXX --no-gnu-unique -shared \
-std=c++23 \
$(pkg-config --cflags pixman-1) \
$(pkg-config --cflags libdrm) \
$(pkg-config --cflags wlroots) \
-I${hyprland.src}/ \
main.cpp barDeco.cpp \
-o $out
set +x
'';
}