3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/window-managers/ratpoison/default.nix
Joachim Fasting 53fa9e8651
ratpoison: reduce closure size
- Move contrib to separate output
- Move doc and info to separate outputs

Reduces the closure size from 96 to 38M
2016-10-22 21:06:21 +02:00

52 lines
1.7 KiB
Nix

{ stdenv, fetchurl, pkgconfig, perl, autoconf, automake
, libX11, inputproto, libXt, libXpm, libXft, libXtst, xextproto, libXi
, fontconfig, freetype, readline
}:
stdenv.mkDerivation rec {
name = "ratpoison-${version}";
version = "1.4.8";
src = fetchurl {
url = "mirror://savannah/ratpoison/${name}.tar.xz";
sha256 = "1w502z55vv7zs45l80nsllqh9fvfwjfdfi11xy1qikhzdmirains";
};
outputs = [ "out" "contrib" "doc" "info" ];
buildInputs =
[ pkgconfig perl autoconf automake
libX11 inputproto libXt libXpm libXft libXtst xextproto libXi
fontconfig freetype readline ];
postInstall = ''
mkdir -p $contrib/{bin,share}
mv $out/bin/rpws $contrib/bin
mv $out/share/ratpoison $contrib/share
'';
meta = with stdenv.lib; {
homepage = "http://www.nongnu.org/ratpoison/";
description = "Simple mouse-free tiling window manager";
license = licenses.gpl2Plus;
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.
'';
platforms = platforms.linux;
maintainers = [ maintainers.AndersonTorres ];
};
}