swaymux/nix/default.nix

48 lines
995 B
Nix

{
lib,
nlohmann_json,
cmake,
qt6,
qtbase,
qtwayland,
stdenv,
wrapQtAppsHook
}:
stdenv.mkDerivation {
pname = "swaymux";
version = "0.1";
src = lib.cleanSource ../.;
configurePhase = ''
cmake .
'';
buildPhase = ''
make -j
'';
installPhase = ''
mkdir -p $out/bin
mv swaymux $out/bin
'';
# dontWrapQtApps = true;
buildInputs = [ qt6.qtwayland cmake nlohmann_json qtbase];
nativeBuildInputs = [ qt6.wrapQtAppsHook ];
doCheck = true;
meta = with lib; {
description = "A program to quickly navigate sway";
longDescription = ''
Swaymux allows the user to quickly navigate and administrate outputs, workspaces and containers in a tmux-style approach.
'';
homepage = "https://git.grimmauld.de/Grimmauld/swaymux";
changelog = "https://git.grimmauld.de/Grimmauld/swaymux/commits/branch/main";
license = lib.licenses.bsd3;
maintainers = [ maintainers.grimmauld ];
platforms = platforms.linux;
};
}