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