2024-03-09 15:38:58 +01:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
nlohmann_json,
|
|
|
|
cmake,
|
|
|
|
qt6,
|
|
|
|
qtbase,
|
2024-03-09 17:58:15 +01:00
|
|
|
qtwayland,
|
2024-03-10 00:16:37 +01:00
|
|
|
stdenv,
|
|
|
|
wrapQtAppsHook
|
2024-03-09 15:38:58 +01:00
|
|
|
}:
|
2024-03-09 18:22:11 +01:00
|
|
|
stdenv.mkDerivation {
|
2024-03-09 15:38:58 +01:00
|
|
|
pname = "swaymux";
|
|
|
|
version = "0.1";
|
|
|
|
|
|
|
|
src = lib.cleanSource ../.;
|
|
|
|
|
|
|
|
configurePhase = ''
|
|
|
|
cmake .
|
|
|
|
'';
|
|
|
|
|
|
|
|
buildPhase = ''
|
2024-03-09 17:58:15 +01:00
|
|
|
make -j
|
2024-03-09 15:38:58 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
mv swaymux $out/bin
|
|
|
|
'';
|
|
|
|
|
2024-03-10 00:16:37 +01:00
|
|
|
# dontWrapQtApps = true;
|
2024-03-09 18:22:11 +01:00
|
|
|
buildInputs = [ qt6.qtwayland cmake nlohmann_json qtbase];
|
2024-03-10 00:16:37 +01:00
|
|
|
nativeBuildInputs = [ qt6.wrapQtAppsHook ];
|
2024-03-09 15:38:58 +01:00
|
|
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|