swaymux/nix/default.nix

50 lines
1.0 KiB
Nix
Raw Normal View History

2024-03-09 15:38:58 +01:00
{
lib,
nlohmann_json,
cmake,
2024-03-09 17:58:15 +01:00
gcc12Stdenv,
2024-03-09 15:38:58 +01:00
qt6,
qtbase,
wrapQtAppsHook,
2024-03-09 17:58:15 +01:00
qtwayland,
icu,
libgcc,
libcxx
2024-03-09 15:38:58 +01:00
}:
2024-03-09 17:58:15 +01:00
gcc12Stdenv.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-09 17:58:15 +01:00
buildInputs = [ icu qtbase qt6.qtwayland cmake nlohmann_json libgcc libcxx ];
nativeBuildInputs = [ wrapQtAppsHook qt6.qtwayland ];
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;
};
}