hyprland-plugins/hyprbars/default.nix
Fernando Ayats 42b9a56256 nixify
2023-03-29 09:57:23 +02:00

39 lines
579 B
Nix

{
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
'';
}