swaymux/nix/default.nix

50 lines
1.0 KiB
Nix

{
lib,
nlohmann_json,
cmake,
gcc12Stdenv,
qt6,
qtbase,
wrapQtAppsHook,
qtwayland,
icu,
libgcc,
libcxx
}:
gcc12Stdenv.mkDerivation {
pname = "swaymux";
version = "0.1";
src = lib.cleanSource ../.;
configurePhase = ''
cmake .
'';
buildPhase = ''
make -j
'';
installPhase = ''
mkdir -p $out/bin
mv swaymux $out/bin
'';
buildInputs = [ icu qtbase qt6.qtwayland cmake nlohmann_json libgcc libcxx ];
nativeBuildInputs = [ wrapQtAppsHook qt6.qtwayland ];
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;
};
}