2022-07-14 12:49:19 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, writeText
|
|
|
|
, fontconfig
|
|
|
|
, libX11
|
|
|
|
, libXft
|
|
|
|
, libXpm
|
2023-05-24 13:37:59 +00:00
|
|
|
, libXrandr
|
2022-07-14 12:49:19 +00:00
|
|
|
, libXrender
|
|
|
|
, conf ? null
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "shod";
|
2023-05-24 13:37:59 +00:00
|
|
|
version = "2.6.2";
|
2022-07-14 12:49:19 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "phillbush";
|
|
|
|
repo = "shod";
|
|
|
|
rev = "v${version}";
|
2023-05-24 13:37:59 +00:00
|
|
|
hash = "sha256-0bKp1BTIdYVBDVdeGnTVo76UtBxa4UbXLZihdjHS/og=";
|
2022-07-14 12:49:19 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
fontconfig
|
|
|
|
libX11
|
|
|
|
libXft
|
|
|
|
libXpm
|
2023-05-24 13:37:59 +00:00
|
|
|
libXrandr
|
2022-07-14 12:49:19 +00:00
|
|
|
libXrender
|
|
|
|
];
|
|
|
|
|
|
|
|
postPatch =
|
|
|
|
let
|
|
|
|
configFile =
|
|
|
|
if lib.isDerivation conf || builtins.isPath conf
|
|
|
|
then conf else writeText "config.h" conf;
|
|
|
|
in
|
|
|
|
lib.optionalString (conf != null) "cp ${configFile} config.h";
|
|
|
|
|
|
|
|
makeFlags = [ "PREFIX=$(out)" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Mouse-based window manager that can tile windows inside floating containers";
|
2022-07-14 12:49:19 +00:00
|
|
|
longDescription = ''
|
|
|
|
shod is a multi-monitor floating reparenting X11 window manager that
|
|
|
|
supports tiled and tabbed containers. shod sets no keybindings, reads no
|
|
|
|
configuration, and works only via mouse with a given key modifier (Alt by
|
|
|
|
default) and by responding to client messages sent by the shodc utility
|
|
|
|
(shod's remote controller).
|
|
|
|
'';
|
|
|
|
homepage = "https://github.com/phillbush/shod";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ azahi ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|