2023-09-24 01:56:18 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchurl
|
|
|
|
, autoreconfHook
|
|
|
|
, fontconfig
|
|
|
|
, freetype
|
|
|
|
, libX11
|
|
|
|
, libXft
|
|
|
|
, libXi
|
|
|
|
, libXpm
|
|
|
|
, libXrandr
|
|
|
|
, libXt
|
|
|
|
, libXtst
|
|
|
|
, perl
|
|
|
|
, pkg-config
|
|
|
|
, readline
|
|
|
|
, texinfo
|
|
|
|
, xorgproto
|
2014-09-21 17:58:53 +00:00
|
|
|
}:
|
2010-02-08 15:33:18 +00:00
|
|
|
|
2023-09-24 01:56:18 +00:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "ratpoison";
|
2017-04-17 19:32:55 +00:00
|
|
|
version = "1.4.9";
|
2007-08-03 22:25:15 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2023-09-24 01:56:18 +00:00
|
|
|
url = "mirror://savannah/ratpoison/ratpoison-${finalAttrs.version}.tar.xz";
|
|
|
|
hash = "sha256-2Y+kvgJezKRTxAf/MRqzlJ8p8g1tir7fjwcWuF/I0fE=";
|
2007-08-03 22:25:15 +00:00
|
|
|
};
|
|
|
|
|
2023-09-24 01:56:18 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
autoreconfHook
|
|
|
|
pkg-config
|
|
|
|
texinfo
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
fontconfig
|
|
|
|
freetype
|
|
|
|
libX11
|
|
|
|
libXft
|
|
|
|
libXi
|
|
|
|
libXpm
|
|
|
|
libXrandr
|
|
|
|
libXt
|
|
|
|
libXtst
|
|
|
|
perl
|
|
|
|
readline
|
|
|
|
xorgproto
|
|
|
|
];
|
|
|
|
|
2017-07-11 09:14:14 +00:00
|
|
|
outputs = [ "out" "contrib" "man" "doc" "info" ];
|
2016-10-22 18:16:35 +00:00
|
|
|
|
2023-09-24 01:56:18 +00:00
|
|
|
strictDeps = true;
|
|
|
|
|
2017-04-17 19:32:55 +00:00
|
|
|
configureFlags = [
|
|
|
|
# >=1.4.9 requires this even with readline in inputs
|
|
|
|
"--enable-history"
|
|
|
|
];
|
|
|
|
|
2016-10-22 18:16:35 +00:00
|
|
|
postInstall = ''
|
|
|
|
mkdir -p $contrib/{bin,share}
|
|
|
|
mv $out/bin/rpws $contrib/bin
|
|
|
|
mv $out/share/ratpoison $contrib/share
|
|
|
|
'';
|
|
|
|
|
2023-09-24 01:56:18 +00:00
|
|
|
meta = {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://www.nongnu.org/ratpoison/";
|
2014-08-24 14:21:08 +00:00
|
|
|
description = "Simple mouse-free tiling window manager";
|
2012-07-09 05:11:10 +00:00
|
|
|
longDescription = ''
|
|
|
|
Ratpoison is a simple window manager with no fat library
|
|
|
|
dependencies, no fancy graphics, no window decorations, and no
|
|
|
|
rodent dependence. It is largely modelled after GNU Screen which
|
|
|
|
has done wonders in the virtual terminal market.
|
|
|
|
|
|
|
|
The screen can be split into non-overlapping frames. All windows
|
|
|
|
are kept maximized inside their frames to take full advantage of
|
|
|
|
your precious screen real estate.
|
|
|
|
|
|
|
|
All interaction with the window manager is done through keystrokes.
|
|
|
|
Ratpoison has a prefix map to minimize the key clobbering that
|
|
|
|
cripples Emacs and other quality pieces of software.
|
|
|
|
'';
|
2023-09-24 01:56:18 +00:00
|
|
|
license = lib.licenses.gpl2Plus;
|
|
|
|
mainProgram = "ratpoison";
|
|
|
|
maintainers = with lib.maintainers; [ AndersonTorres ];
|
|
|
|
inherit (libX11.meta) platforms;
|
2010-02-08 15:33:18 +00:00
|
|
|
};
|
2023-09-24 01:56:18 +00:00
|
|
|
})
|