blob: a71efe4b52c10fdb2de7390a16f02efefcd3568d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
{ lib
, stdenv
, fetchFromGitHub
, writeText
, fontconfig
, libX11
, libXft
, libXpm
, libXrandr
, libXrender
, conf ? null
}:
stdenv.mkDerivation rec {
pname = "shod";
version = "2.6.2";
src = fetchFromGitHub {
owner = "phillbush";
repo = "shod";
rev = "v${version}";
hash = "sha256-0bKp1BTIdYVBDVdeGnTVo76UtBxa4UbXLZihdjHS/og=";
};
buildInputs = [
fontconfig
libX11
libXft
libXpm
libXrandr
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; {
description = "Mouse-based window manager that can tile windows inside floating containers";
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;
};
}
|