2021-01-19 06:50:56 +00:00
|
|
|
{ lib, stdenv, fetchurl, pkg-config, perl, autoconf, automake
|
2018-12-31 03:40:47 +00:00
|
|
|
, libX11, xorgproto, libXt, libXpm, libXft, libXtst, libXi
|
2017-04-17 20:32:55 +01:00
|
|
|
, libXrandr, fontconfig, freetype, readline
|
2014-09-21 18:58:53 +01:00
|
|
|
}:
|
2010-02-08 15:33:18 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "ratpoison";
|
2017-04-17 20:32:55 +01:00
|
|
|
version = "1.4.9";
|
2007-08-03 23:25:15 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-15 13:41:18 +01:00
|
|
|
url = "mirror://savannah/ratpoison/${pname}-${version}.tar.xz";
|
2017-04-17 20:32:55 +01:00
|
|
|
sha256 = "1wfir1gvh5h7izgvx2kd1pr2k7wlncd33zq7qi9s9k2y0aza93yr";
|
2007-08-03 23:25:15 +01:00
|
|
|
};
|
|
|
|
|
2017-07-11 10:14:14 +01:00
|
|
|
outputs = [ "out" "contrib" "man" "doc" "info" ];
|
2016-10-22 19:16:35 +01:00
|
|
|
|
2017-04-17 20:32:55 +01:00
|
|
|
configureFlags = [
|
|
|
|
# >=1.4.9 requires this even with readline in inputs
|
|
|
|
"--enable-history"
|
|
|
|
];
|
|
|
|
|
2021-01-19 06:50:56 +00:00
|
|
|
nativeBuildInputs = [ pkg-config autoconf automake ];
|
2017-04-17 20:32:55 +01:00
|
|
|
|
2010-02-08 15:33:18 +00:00
|
|
|
buildInputs =
|
2017-04-17 20:32:55 +01:00
|
|
|
[ perl
|
2018-12-31 03:40:47 +00:00
|
|
|
libX11 xorgproto libXt libXpm libXft libXtst libXi libXrandr
|
2014-09-21 18:58:53 +01:00
|
|
|
fontconfig freetype readline ];
|
2010-02-08 15:33:18 +00:00
|
|
|
|
2016-10-22 19:16:35 +01:00
|
|
|
postInstall = ''
|
|
|
|
mkdir -p $contrib/{bin,share}
|
|
|
|
mv $out/bin/rpws $contrib/bin
|
|
|
|
mv $out/share/ratpoison $contrib/share
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://www.nongnu.org/ratpoison/";
|
2014-08-24 15:21:08 +01:00
|
|
|
description = "Simple mouse-free tiling window manager";
|
2014-09-21 18:58:53 +01:00
|
|
|
license = licenses.gpl2Plus;
|
2010-02-08 15:33:18 +00:00
|
|
|
|
2012-07-09 06:11:10 +01: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.
|
|
|
|
'';
|
2010-02-08 15:33:18 +00:00
|
|
|
|
2018-08-28 20:48:33 +01:00
|
|
|
platforms = platforms.unix;
|
2014-09-21 18:58:53 +01:00
|
|
|
maintainers = [ maintainers.AndersonTorres ];
|
2010-02-08 15:33:18 +00:00
|
|
|
};
|
2007-08-03 23:25:15 +01:00
|
|
|
}
|