swaymux/nix/default.nix

47 lines
957 B
Nix
Raw Normal View History

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